


The second lens thus performs in inverse Fourier transformation, allowing the creation of a focused image.3DImaging Convert 2D Images to Red-Cyan 3D Images The second lens reverses this procedure, reassembling the waves dispersed in optical k-space back to their original relationships. The light waves are unfocused and would not form a picture on your retina.

If you put your head midway between the two lenses (at the so-called Fourier plane) and looked back towards the Queen, you would see nothing except a vague diffuse glow representing the average intensity of light entering the first lens. The first lens has thus performed an "optical" Fourier transformation of the incident light rays. If we wish to display this 2D data as a colorful we. So a 2D variable, even though the original image ( a) was 3D (rgb). The function I want to use is: function imagetofloat(image) im Image.Image(dataimage) end I have tried the following code for converting it to 3d image. a imread ('peppers.png') X,map rgb2ind (a,256) If we ask the size of X, we get: ans 384 512. These waves constructively and destructively interfere. Let's read and use the rgb2ind function to store the image data in variable X and its associated colormap in variable map. The "output" of the first lens is a series of unfocused wave fronts with higher spatial frequencies toward the periphery and lower frequencies toward the center. Higher frequency waves are refracted more at the edges. Light waves reflected off the sculpture enter the first lens and are refracted (bent) as a function of their spatial frequencies. Lower frequency waves are only weakly refracted, passing straight through the center of the lens. Consider viewing the famous sculpture of Queen Nefertiti through a pair of lenses.
