Home > ISET > vcamera > optics > opticsOTF.m

opticsOTF

PURPOSE ^

Apply the opticalImage OTF to its photon data

SYNOPSIS ^

function opticalImage = opticsOTF(opticalImage,otfSaveFlag);

DESCRIPTION ^

 Apply the opticalImage OTF to its photon data

    opticalImage = opticsOTF(opticalImage,[otfSaveFlag]);

 The optical transform of the scene data is computed here using
 information from the opticalImage structure. The OTF is stored in the
 optics structure.  The necessary spatial (frequency) support in the
 optical image is computed from the OI information.

 The OTF can be quite large.  It represents every spatial frequency in
 every waveband.  So we  compute the OTF and apply it on the fly, without
 storing the whole OTF.  

 The method of using Matlab to apply the OTF to the image (rather than
 convolution in the space domain) is explained both here and in the script
 s_FFTinMatlab.

 In the future, we may permit saving the OTF in the OI structure by
 setting the otfSaveFlag to true (1).  At present, that flag is not
 implemented.  But computers do seem to be getting bigger and faster.

 See also:  s_FFTinMatlab, oiCalculateOTF, oiCompute

 Examples:
  opticalImage = opticsOTF(opticalImage);      % Not saved
  opticalImage = opticsOTF(opticalImage,1);    % OTF data are saved -- NOT YET IMPLEMENTED

 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