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.