jooa 0 Junior Poster in Training

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.