Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write code in MATLAB Use any portrait head photo. Use photo manipulation to get

ID: 3883120 • Letter: W

Question

Write code in MATLAB Use any portrait head photo. Use photo manipulation to get gray scale image: you may use any matrix size, such as 512 times 512: you may use integer to represent gray scale. 1) Write a matlab code to read the image, apply Fourier transformation to generate a k-space complex image of your face with frequency range [-k_max, k_max] in both kx and ky axes. Then, 2) Null the data inside [-k_max/4, k_max/4] along both axes in k-space, ie, set k-space signal values inside the central square [-k_max/4, k_max/4] to zero. Then inverse Fourier transform back to image space.

Explanation / Answer

This is a vectorized version of the same code:

Using vectorization, you can write a much more concise MATLAB process. This code shows one way to accomplish the task:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote