On Sun, 03 Apr 2011 21:12:00 +1000, kfj <[email protected]> wrote:
And I still believe those sharp discontinuities and minimum-to-maximum jumps in your source image may be part of the problem, never mind you can recover the source image precisely.
Things are now looking a bit more like they should.I found some basic errors in the way I was doing convolution and deconvolution in freq domain in Octave. I had forgotten that special syntax is needed for element by element multiply and divide when dealing with arrays/matrices. A bit more RTFM needed!
I also 'toned' down the test image a tad.The sharp image can now be recovered (almost) exactly, and applying the same PSF to the sharp recovers the blurred image (almost) exactly. The 'brightness' of the recovered images (the pixel values) don't come back exactly as they go in, but the ratios seem to be the same. In the attached images I have rescaled the derived images to have the same max values as the originals.
The attached images are all portable grey image format (pgm) and are as follows;
'test-image.pgm' the original sharp image 'test-image-blur.pgm' the original sharp image with motion blurr'test-newsharp.pgm' a sharp image derived from the blurred image using the PSF 'test-new-blur.pgm' a blurred image derived from the sharp image using the PSF
I have also attached 'oct-do-blurr', the Octave script to do the doings, which might be helpful to anyone trying to follow this.
Not clear why the derived images are not exact or why brightness changes.These results are pretty good and satisfy me that given exactly aligned blurred and sharp images, the blurred can be corrected (almost) exactly. Moving on from exactly aligned greyscale to not-so-well aligned RGB is another matter, and needs a lot more work/thought. I somehow doubt that I will make much progress at that level.
Cheers, -- Regards, Terry Duell -- You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx
test-image.pgm
Description: Binary data
test-image-blur.pgm
Description: Binary data
test-newblur.pgm
Description: Binary data
test-newsharp.pgm
Description: Binary data
oct-do-deblurr
Description: Binary data
