Home > ISET > vcamera > scene > sceneCrop.m

sceneCrop

PURPOSE ^

Crop scene data.

SYNOPSIS ^

function [scene,rect] = sceneCrop(scene,rect)

DESCRIPTION ^

Crop scene data.

  [scene,rect] = sceneCrop(scene,[rect])

Purpose:
   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:
  [val,scene] = vcGetSelectedObject('SCENE');
  newScene = sceneCrop(scene);

 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