> there is a bug in informtion contained by cfftw plugin.
> it is showing the same RGB value of any pixel in image.
Thanks! Ajanta,
Indeed there was a mistake.
In the function,
void CProcessor::DoFFT(BYTE *buffer, int width, int height, int
bytesPerPixel)
Instead of the following:
// Put it back in the original array
count = 0;
for(int i=0; i<width*height; i++)
{
buffer[count++] = (BYTE)tempB_1D[i];
buffer[count++] = (BYTE)tempB_1D[i];
buffer[count++] = (BYTE)tempB_1D[i];
}
it should be:
// Put it back in the original array
count = 0;
for(int i=0; i<width*height; i++)
{
buffer[count++] = (BYTE)tempB_1D[i];
buffer[count++] = (BYTE)tempG_1D[i];
buffer[count++] = (BYTE)tempR_1D[i];
}
I have corrected the source code and have the updated the precompiled
binaries too. They can be downloaded from:
http://divyarathore.googlepages.com/fftwpluginforimageapprentice
warm regards,
Divya Rathore
(remove underscores for email ID)