Home > ISET > vcamera > opticalImage > oiCrop.m

oiCrop

PURPOSE ^

Crop the data in an optical image

SYNOPSIS ^

function [oi,rect] = oiCrop(oi,rect)

DESCRIPTION ^

Crop the data in an optical image

  [oi,rect] = oiCrop(oi,[rect])

 Crop the data (photons) in the scene or optical image to within the
 rectangle, rect. If rect is not defined a graphical routine is
 initiated for selecting the rectangle.  The values of rect can be
 returned.

 Because these are multispectral data, we can't use the usual imcrop.
 Instead, we use vcROISelect to return the selected data.  Then we turn
 the selected data into a photon image and reset the relevant parameters
 in the scene structure.

 Example:
  newOI = sceneCrop(vcGetSelectedObject('oi'));

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

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