Home > ISET > plots > plotOTF.m

plotOTF

PURPOSE ^

Plot OTF functions associated with the optics in an optical image

SYNOPSIS ^

function uData = plotOTF(oi,dataType,roiFlag,varargin)

DESCRIPTION ^

Plot OTF functions associated with the optics in an optical image

   plotOTF(opticalImage,[dataType],[roiFlag])

 The data can be retrieved by uData = get(gcf,'userData'); 

      {'otf'}          - Optical transfer function, units are lines/mm
      {'otf550'}       - OTF at 550 nm
      {'psf'}          - Point spread function at selected wavelength 
      {'psf550'}       - PSF at 550nm spatial units are microns
      {'lswavelength'} -  Line spread function at all wavelengths.
         Peak spatial frequency can be set for the OTF (default:
         3*incoherent cutoff)
         Number of spatial samples to plot in the line spread can be set
         (default: 40).
      {'otfwavelength'} -  One dimensional cut through the OTF at a all wavelengths.  
                           % Units are cycles/mm
 
 See also:  plotOI, psfMovie

 Examples:
   oi = vcGetObject('OI');
   uData = plotOTF(oi,'otf550');
   plotOTF(oi,'psf',0,420)
   plotOTF(oi,'lswavelength')

   peakF = max(3*opticsGet(oiGet(oi,'optics'),'inCutoff','um'));
   spaceSamps = 100;
   plotOTF(oi,'lswavelength',[],peakF,spaceSamps)

 Copyright ImagEval Consultants, LLC, 2005.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003