Re: FFT phase ?
Posted: 2012-01-04T13:25:16-07:00
I'm not saying any particular topic is "wrong", I'm saying it is not a reliable reference, so I do not refer to it. Aside "a lot of experts" there are also a lot of idiots who edit WP. There is no restriction who edits WP so there is no reason to believe those who contribute are "expert". I won't waste further time on that issue here.fmw42 wrote:So are you saying that it is wrong. A lot of experts have contributed to Wikipedia. So there must be something to it. I cannot explain to you but using the real sinc or jinc to recover the image from motion blur and defocus (without an imaginary component) works.Oh please, don't quote WP as a reference for anything. It's like watching a Hollywood film "based on a true story" and imagining you are learning history.
So we're agreed , the fact that to two results match does not verify anything because they come from the same source.fmw42 wrote:FFT or DFT etc, do not use polar coordinates and I never said so. The fact that the jinc is circular symmetric comes from the fact that the spatial transform or PSF is a circle for defocus. This has nothing to do with the workings of the FFT.I am not aware of any fast DFT that actually operates in polar co-ordinates (not to say it can't be done). My guess is that either IM converts when you use -fft or FFTW does it internally. By using +fft or -fft you are simply stating in what form you wish to have the output. That the two are consistent does prove or confirm anything is correct.
Well if the actual result of the transform is not available that probably should be made very clear. If IM retains some internal copy this probably needs explaining because I saw no mention of this is the doc. Thanks for updating the other issue.fmw42 wrote:No, my conclusions are based on getting the same kind of results from simulations and real defocus images. If I use the fftdeconvol using a circle filter or I use the cameradeblur using a jinc, they both correct the defocus. The fftdeconvol has to deal however with the fact that the digital circle is not perfect, especially for small circles. Nevertheless, the both deblur the image. Both methods use real-imaginary FFT components of the image. fftdeconvol use real/imaginary components for the fft of the circle filter. cameradeblur uses on the jinc as the real part.Could you post a code snip that demonstrates that?
As far as I know, you cannot in mag phase, only from real/imaginary in HDRI mode. You could use those to regenerate mag phase without any scaling if you want.So how can I access this "internal", not mucked about with, transform?
I have edited the docs to bring them up to speed with the current IM FFT. If you find any other issues or have questions, then please notify us and we will try to fix them as quickly as possible.OH What?! More undocumented "features" . No wonder I can't follow what IM is doing. Whenever I try to pull out an intermediary step to see what is going on it gets "converted" so I can see it.
Well each new bit of software is another set of instructions and syntax to learn and they will have their short-comings too. At some point it is necessary to understand the restrictions and work around them. That is what I'm trying to do, though the process is somewhat impeded by unexpected behaviour that is not documented.fmw42 wrote:
If you are unhappy with IM's approach to FFT, you are free to use other software. I have already suggested two -- ImageJ and FFTJ. I am sure there are lots of other tools out there.
Hopefully raising these issues will allow them to be corrected.