Git Product home page Git Product logo

Comments (9)

cszn avatar cszn commented on June 2, 2024

Make sure you also provide the blur kernel because IRCNN takes the blurred image and blur kernel as input.
For your own blurred image, please estimate the blur kernel by a blind deblurring method first, then you can use this code for non-blind deblurring.

from ircnn.

yxxxxxxxx avatar yxxxxxxxx commented on June 2, 2024

我是直接跑的demo,然后出现了上述错误,那这个blur kernel是一张图片吗?比如说:kerneltestsets/Deblur_set2/im01_ker01_out_kernel.png

from ircnn.

cszn avatar cszn commented on June 2, 2024

Yes, the blur kernel is saved as an image.

from ircnn.

dadachongzi avatar dadachongzi commented on June 2, 2024

i am also encounter this question,how to solve it?thanks!

from ircnn.

Zonobia-A avatar Zonobia-A commented on June 2, 2024

Can you tell me how to estimate the blur kernel by a blind deblurring method?

from ircnn.

cszn avatar cszn commented on June 2, 2024

Some blind deblurring codes: https://github.com/rgbitx/image_deblur_code

from ircnn.

Zonobia-A avatar Zonobia-A commented on June 2, 2024

Thanks!

from ircnn.

cszn avatar cszn commented on June 2, 2024

The problem has been solved.
See the details:

%% handle boundary

from ircnn.

pingfansong avatar pingfansong commented on June 2, 2024

I ever got similar errors in other codes.

Error using edgetaper
Expected input number 2, PSF, to be nonzero.

Error in edgetaper>parse_inputs (line 128)
validateattributes(PSF,{'uint8','uint16','int16','double','single'},...

Error in edgetaper (line 34)
[I, PSF, sizeI, classI, sizePSF, numNSdim] =
parse_inputs(varargin{:});

Actually, the error means that PSF is required not to contain zero elements by the function validateattributes(PSF,{'uint8','uint16','int16','double','single'},...

So, we need to check PSF to make sure it does not contain zeros. Alternatively, we can add PSF with very small numbers to eliminate zeros. It works in this way.

from ircnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.