AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

How to get a color image after fourier transform?

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

How to get a color image after fourier transform?

Postby chonghoong » Thu Aug 20, 2009 6:47 am

Hi,

I applied fourier transform to an image but when I convert back to BitMap using ComplexImage.ToBitmap()

it returns me a greyscale image. Is there anyway to get a color image?

thanks.


This is my source codes:
************************************************************************************************************************************
AForge.Imaging.ComplexImage myComplexImage = AForge.Imaging.ComplexImage.FromBitmap("A.bmp");
myComplexImage.ForwardFourierTransform();
AForge.IntRange range = new AForge.IntRange(0,100);
myComplexImage.FrequencyFilter(range);
myComplexImage.BackwardFourierTransform();

// this is greyscale instead of color
Bitmap transformedBitmap = myComplexImage.ToBitmap();
************************************************************************************************************************************

Thanks alot for your help!

Regards,
Chong Hoong
chonghoong
 
Posts: 1
Joined: Thu Aug 20, 2009 6:37 am



Return to AForge.NET Framework