* Take fourier transform of the image for each color R, G, B
* Randomly scramble the phase of the transformed image.
* Perform the fourier inverse of that scrambled phase image.
The result is another 2D image with the same colors AND spatial frequencies as the original image. It looks like you took the original photo and vaporized it into gas. Interesting.
I should have probably written more comments, but I really need to go sleep now.
library(imager)
download.file("https://upload.wikimedia.org/wikipedia/en/2/24/Lenna.png",'lena.png', mode = 'wb')
lena <- load.image("./lena.png")
plot(lena)
lena_fft <- FFT(lena)
lena_pwr <- sqrt( lena_fft$real^2 + lena_fft$imag^2)
lena_ph <- atan2(lena_fft$imag, lena_fft$real)
lena_ph[1:512,1:512,1,] <- matrix(runif(512*512,-pi,pi),ncol=512)
lena_mess <- FFT(lena_pwr*cos(lena_ph),lena_pwr*sin(lena_ph),inverse = TRUE)
plot(sqrt(lena_mess$real^2 + lena_mess$imag^2))Let's say if we have a 4096 times 4096 image we can reach and fill all values in the 3d representation, if we want to!
Now I would pose another question: would it be possible to make a human-recognizable 3D-object in all the four color spaces that is also a pretty picture in 2D?
However the luminance component of the image could probably be adjusted within certain error margins and vice versa. Perhaps by some form of bruteforce!
To know for sure I suppose coding is needed!