For example, encode the frequency domain representation as a low quality JPEG, and then undo the steps to turn it back into the "original". How do the JPEG artifacts on the frequency domain manifest in the resulting image?
For example, encode the frequency domain representation as a low quality JPEG, and then undo the steps to turn it back into the "original". How do the JPEG artifacts on the frequency domain manifest in the resulting image?
A quick album (there are captions):
This is hilarious but I don't think it makes any sense.
I also tried 70% 444, still unrecognizable.
for quality in 50 75 90 95 99 ; do
# FFT
convert source.png -fft +depth +adjoin source_fft_%d.png
# compress FFT magnitude and phase
convert source_fft_0.png -quality $quality source_fft_magnitude.jpg
convert source_fft_1.png -quality $quality source_fft_phase.jpg
# IFFT
convert source_fft_magnitude.jpg source_fft_phase.jpg -ift out.$quality.png
doneThe image is still recognisable even at quite harsh compression of the phase file, but almost totally unrecognisable at even minor compression of the magnitude file.
But if the original data is an image (matrix or grid of pixels in space), then the "frequency domain pixels" are different wave-numbers (aka spatial frequencies: how many repetitions in a meter, etc.) and the Fourier transform (of the pixel grid) is a amplitude vs. wave-number function.