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:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.