From: rukmani on

hi,

I have a basic doubt regarding the use of the functions like FFT2,DCT2
or DWT2. Are these functions are restricted to be used only for images
which have a smooth variation of colour map?
Because when i tried to use these for a 256*256*3 image size it results
in error . Kindly clear my doubt and do tell me whether the colour
image should be preprocessed before applying FFT2 or DCT2 or DWT2.
waitng for someones help,
regds,
rukmani.

From: Dave Robinson on
rukmani wrote:
>
>
>
> hi,
>
> I have a basic doubt regarding the use of the functions like
> FFT2,DCT2
> or DWT2. Are these functions are restricted to be used only for
> images
> which have a smooth variation of colour map?
> Because when i tried to use these for a 256*256*3 image size it
> results
> in error . Kindly clear my doubt and do tell me whether the colour
> image should be preprocessed before applying FFT2 or DCT2 or DWT2.
> waitng for someones help,
> regds,
> rukmani.

The RGB planes of a colour image are effectively orthogonal data
planes; the easiest way to deal with them, when working in the
frequency domain is to seperate them into 3 independent monochrome
images, then fft2 them seperately. Do whatever you need in the
frequency domain, and assuming you are coming back to the spatial
domain ifft2 them seperately, then recombine the colour planes to
reform a colour image.

Regards

Dave Robinson
From: rukmani on
Thank u sir for the timely reply . Is this possible for wavelet domain
also...? or is it only for frequency domain..

regds,
rukmani.

From: Dave Robinson on
rukmani wrote:
>
>
> Thank u sir for the timely reply . Is this possible for wavelet
> domain
> also...? or is it only for frequency domain..
>
> regds,
> rukmani.
>
The RGB planes are notionally independent, so that splitting them and
applying Wavelet processing will work, again if you need a colour
image as the output from your analysis, the very last step is to
recombine the independently processed colour planes for
display/storage.

Regards

Dave Robinson
From: rukmani on
thank u sir for the timely reply..
regds,
rukmani.