Home > ISET > utility > image > imageSPD.m

imageSPD

PURPOSE ^

Derive an RGB image from an SPD image

SYNOPSIS ^

function RGB = imageSPD(SPD,wList,gam,row,col,displayFlag,xcoords,ycoords)

DESCRIPTION ^

 Derive an RGB image from an SPD image

     RGB = imageSPD(SPD,[wList],[gam],[row],[col],[displayFlag=1],[x coords],[y coords])

 The RGB image represents the general appearance of the spectral power distribution
 (spd) data. 

 The spd data can be either in XW or RGB format.  If the data are passed
 in XW format, then row and col must be passed in also. 

 The routine can also be used to return the RGB values without displaying
 the data. 

 The image can be displayed with a spatial sampling grid overlaid to
 indicate the position on the optical image or sensor surface.

 wList: the sample wavelengths of the SPD 
           (default depends on the number of wavelength samples)
 gam:   is the display gamma  (default = 1)
 row,col are the image size (needed when the data are in XW format)
 x and y coords are the spatial positions of the points.
   
 Examples:
   imageSPD(spdData,[], 0.5,[],[],1);   % spdData is [r,c,w]
   imageSPD(spdData,[], 0.6,128,128);   % spdData is [128*128,w]              
   rgb = imageSPD(spdData,[], 0.5,[],[],0);  % rgb is calculated, but not displayed

 Copyright ImagEval Consultants, LLC, 2005.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 20-Nov-2008 22:09:04 by m2html © 2003