954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help! Convert pixel array of complex numbers to image.

I am implementing an FFT class. I get the pixel data from an image then pass this to the FFT class. Once I apply the fast fourier transform to the array the result is an array of complex numbers. At the moment I convert the array of complex number to ints and display it via the MemoryImageSource:

MemoryImageSource src = new MemoryImageSource(grabbing.getWidth(), grabbing.getHeight(), newNumbers, 0, grabbing.getWidth());


However I would like to display the original array so no information is lost but the MemoryImageSource only takes int arrays. Does anyone know of a different way I can display these images?

Thank you

jooa
Junior Poster in Training
62 posts since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You