


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.