How to enhance and denoise an FFT diffraction image?

조회 수: 2 (최근 30일)
ct8
ct8 2024년 2월 22일
댓글: ct8 2024년 4월 11일
I have generated an FFT diffraction profile of a crystal. In the image I want to highlight or enhance only the primary (or brightest 1st order) diffraction spots that take the shape of a distorted hexagon. Please see attached image and image data. I also want to get rid of the cross ("+" shaped) lines from the image. Is there a code available to perform such image enhancement and/or denoising? Thank you in advance for your help!

채택된 답변

Image Analyst
Image Analyst 2024년 3월 4일
If you want only the spectrum from within the green circle regions, you can just zero out everything outside of those. You can either use drawcircle to manually do it (demo attached), or find some automatic way to find the spikes. See attached demos.
The "crosses" are caused by the finite size of your image and the fact that the intensity at the top of the image is substantially different than the bottom. To reduce that you can use a Hamming window to taper down the intensity near the edges. However if you're zeroing out everything outside of the green circles, there won't be a mismatch at the top and bottom since the intensities will now be zero.
  댓글 수: 1
ct8
ct8 2024년 4월 11일
Thank you! I needed to tweak the code a bit and it works for my purpose. @Image Analyst you are the best!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by