Home > ISET > utility > sample2space.m

sample2space

PURPOSE ^

Determine physical spacing of samples in a scene or optical image

SYNOPSIS ^

function [rMicrons,cMicrons] = sample2space(rSamples,cSamples,rowDelta,colDelta)

DESCRIPTION ^

Determine physical spacing of samples in a scene or optical image

   [rMicrons,cMicrons] = sample2space(rSamples,cSamples,rowDelta,colDelta)

   We treat the center of the samples as (0,0) and use the sampling spacing
   in microns to calculate the location of the other samples. 

Example:
  [rMicrons,cMicrons] = ...
          sample2space(sceneGet(oi,'rows'),sceneGet(oi,'cols'), ...
                       sceneGet(oi,'hres'),sceneGet(oi,'wres'))  
 [X,Y] = meshgrid(cMicrons,rMicrons);

 cSamples = [1:.2:64];
 rSamples = [1:.2:64];
 rowDelta = 5;
 colDelta = 5;
 [rMicrons,cMicrons] = sample2space(rSamples,cSamples, rowDelta,colDelta)  

 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