Hi. I have a grayscale image that I would like to sonify after binarizing it. I have tried using ListPlay[imageName], and also tried flattening the image matrix, but I have not been able to convert it into square waves. I would be very grateful for your guidance with this . Regards, Marc
There are many different ways to sonify an image.
Are you looking to interpret the image as if it were a Spectrogram of sorts? I think that's the most reasonable/common thing people mean.
If so, you'll find want to extract the values of the image into a matrix. For each second or so of audio, you can take a vertical slice of it and do an inverse fourier transform to get a sound wave.
I found a simple solution for playing the raw image for now, by flattening the image matrix:
middle1 = ImageTake[img, {124, 200}, {150, 240}]; middle1flat = Flatten[ImageData[middle1]]; ListPlay[middle1flat, SampleRate -> 4000]
Hi Sean, Thanks for your reply. Great insight - I had not thought about using inverse Fourier transform to combine the signals into one for each column. Nice idea. thanks, Marc