Figure 1. Example code and the circular aperture image it produces
Figure 2. Code and image for the annulus
Next is the sinusoid along the x-direction (corrugated roof) image. I still used the layout of the example code for this. Now instead of generating A as a zero matrix, I have used the sine function to form a grayscale image.
Figure 3. Code and image for the corrugated roof image. Note the constant 5 in the argument of the sine function. (f=2/5)
Figure 4. Code and image for the grating along x-axis
For the circular aperture with Gaussian transparency, I've modified the circular aperture with a normal Gaussian function of r.
Figure 3. Code and image for the circular aperture with Gaussian transparency. Sigma = 0.9
the A(xi:xn,yi:yn)=k to set the values of the middle segment of the matrix of width 20 pixels.
Figure 5. Code and image for the square aperture. Side = 20 pixels.
Self-Assessment: 10/10
No comments:
Post a Comment