Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@jscanvic
Copy link
Collaborator

@jscanvic jscanvic commented Nov 17, 2025

Towards #898

Liu-Jia padding reduces ringing artefacts introduced by spectral deconvolution methods that generally assume a periodic blur model that is unsuitable for real-world deblurring where opposite edges are decorrelated.

TODO

  • Improve the the explanations in the example
  • Document deepinv.utils.liu_jia_pad

Simple experiment

I blur a 256x256 RGB image using a Gaussian filter with a standard deviation of 1px and compare the effect of using no padding vs using Liu-Jia padding before using one of two deconvolution method (simple inverse filtering and Wiener deconvolution). We see that Liu-Jia padding prevents the ringing artifacts in Wiener deconvolution.

Inverse filtering
image

Wiener deconvolution
image

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.44%. Comparing base (0f337a7) to head (50d19cd).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #934      +/-   ##
==========================================
- Coverage   84.81%   84.44%   -0.38%     
==========================================
  Files         208      208              
  Lines       21352    21588     +236     
  Branches     2878     2931      +53     
==========================================
+ Hits        18110    18229     +119     
- Misses       2347     2429      +82     
- Partials      895      930      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jscanvic jscanvic mentioned this pull request Dec 12, 2025
5 tasks
@Tmodrzyk
Copy link
Contributor

Hi @jscanvic is this ready for review ? Do you need any help for the last TODOs ? 😄

@jscanvic
Copy link
Collaborator Author

Almost I'll wrap it up shortly but thanks for offering your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.