How do I use imagesc to plot OTF

조회 수: 1 (최근 30일)
Yan Zhu
Yan Zhu 2017년 2월 17일
답변: Vandana Rajan 2017년 2월 20일
The OTF function is transferred from a PSF function with X and Z axis. How can I use imagesc to plot the OTF function?

답변 (1개)

Vandana Rajan
Vandana Rajan 2017년 2월 20일
Hi,
Have you seen the example given in this link
https://www.mathworks.com/help/images/ref/psf2otf.html
PSF = fspecial('gaussian',13,1);
OTF = psf2otf(PSF,[31 31]); % PSF --> OTF
subplot(1,2,1); surf(PSF); title('PSF');
axis square; axis tight
subplot(1,2,2); surf(abs(OTF)); title('Corresponding |OTF|');
axis square; axis tight

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by