Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert complex images to 8-bit grayscale images?

I made a fourier transform of a greyscale image and want save this pictures as greyscale pictures. I can see the picture on the monitor, but I can't get it converted.
0 Kudos
Message 1 of 3
(3,412 Views)
Use IMAQ ComplexPlaneToImage to convert a complex image to a 8-bit grayscale. There are several options so you can control what is converted.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(3,412 Views)
Just found the solution after a lot of trials.
You do the fourier transform, use IMAQ ComplexFlipFrequency, extract the magnitude plane as an array,take the absolute value, divide by 620,000, multiply by 256, set all values greater than 255 to 255, convert to an unsigned integer array, convert to U8-image.
I don't know why the magic number is 620,000. I found it by trial and error.
0 Kudos
Message 3 of 3
(3,412 Views)