Home > ISET > vcamera > sensor > sensorCompute.m

sensorCompute

PURPOSE ^

Compute sensor response using ISA parameters and optical image data

SYNOPSIS ^

function ISA = sensorCompute(ISA,OPTICALIMAGE,showWaitBar)

DESCRIPTION ^

Compute sensor response using ISA parameters and optical image data

   ISA = sensorCompute([ISA],[OPTICALIMAGE],[showWaitBar = 1])

  This is the top-level function that combines the parameters of an image
  sensor array (ISA) and an optical image (OI) to produce the sensor
  response.
   
  The computation checks a variety of parameters and flags in the ISA structure to
  perform the calculation.  These parameters and flags can be set either
  through the graphical user interface (sensorImageWindow) or by scripts.

 COMPUTATIONAL OUTLINE:

   This routine provides an overview of the algorithms.  The specific
   algorithms are describprnued in the routines themselves. 

   If the Custom button is set, then a routine provided by the user is
   called instead of this routine.
   
   Otherwise, 
   1.  The autoExposure flag is checked and the autoExposure routine is
   called (or not).

   2.  The sensorComputeImage() routine is called.  This is the key
   computational routine for the mean image data; it contains many parts. 

   3.  Correlated double sampling flag is checked and applied (or not).

   4.  The Vignetting flag is checked and pixel vignetting is applied (or
   not).  

   5.  The quantization flag is checked and the data are appropriately
   quantized.

   The main computations of the sensor iamge are done in the
   sensorComputeImage routine. 

  The value of showWaitBar determines whether the waitbar is displayed to
  indicate progress during the computation.

 Examples:
  ISA = sensorCompute;   % Use selected ISA and OI
  tmp = sensorCompute(vcGetObject('isa'),vcGetObject('oi'),0);

 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