Home > ISET > vcamera > sensor > sensorSetSizeToFOV.m

sensorSetSizeToFOV

PURPOSE ^

Adjust number of rows and columns to make sensor h-FOV close to deg (angle)

SYNOPSIS ^

function [isa,actualFOV] = sensorSetSizeToFOV(isa,deg)

DESCRIPTION ^

 Adjust number of rows and columns to make sensor h-FOV close to deg (angle)

   [isa,actualFOV] = sensorSetSizeToFOV(isa,deg)

 The aspect ratio of the sensor is left approximately unchanged.  The size
 must be a multiple of the cfa size.

Example:
  isa = vcGetObject('sensor');
  isa = sensorSetSizeToFOV(isa,1);        % Make a 1 deg field of view sensor
  [val,isa] = vcGetSelectedObject('ISA'); isa = sensorSetSizeToFOV(isa,30); 
  vcReplaceObject(isa,val);

  [isa,actualFOV] = sensorSetSizeToFOV(isa,3);

 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