I have implemented DFT from Vision & Graphics Group at the Faculty of Informatics and Information Technologies STU - Frequency domain filtration.
- Tried taking dft for the three Channels(R, G and B) and reconstructed the original image by taking inverse dft for all three channels and merged them together, but the image reconstructed doesnot have the same contrast as the original image.
But while altering the flags used in the link as such
dft(input, Complex, DFT_SCALE);
dft(Complex, InverseDFTImage, DFT_INVERSE + DFT_REALOUTPUT);
InverseDFTImage.converTo(InverseDFTImage, CV_8U);
The output is same as the input, but while applying Gaussian filter, there are few colour differences near the edges.
1. Original Input Image
2. Output without any filters(followed the Procedure in the link)
3. After applying Gaussian Low Pass Filter
Can someone clarify this doubt.?
P.S Thanks in advance
float
for the RGB bitmaps) the quantization error would add up through the FFT passes to become particularly visible. them's are 24 honest mantissa bits. and if the bitmaps have 64-bitdouble
instead of float, then forget it. the quantization noise floor is so many dB down that it will never build up to anything of consequence in the FFT and inverse FFT. $\endgroup$