How do I use imagesc to plot OTF

5 Ansichten (letzte 30 Tage)
Yan Zhu
Yan Zhu am 17 Feb. 2017
Beantwortet: Vandana Rajan am 20 Feb. 2017
The OTF function is transferred from a PSF function with X and Z axis. How can I use imagesc to plot the OTF function?

Antworten (1)

Vandana Rajan
Vandana Rajan am 20 Feb. 2017
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

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by