Home > ISET > color > XW2RGBFormat.m

XW2RGBFormat

PURPOSE ^

Convert XW format data to RGB format

SYNOPSIS ^

function imRGB = XW2RGBFormat(imXW,row,col)

DESCRIPTION ^

 Convert XW format data to RGB format

    imRGB = XW2RGBFormat(imXW,row,col);

   This  routine converts from XW format to RGB format.  The row and
   column of the imXW are required input arguments.

   We say matrices in (r,c,w) format are in RGB format.  The dimension, w,
   represents the number of data color bands.  When w=3, the data are an RGB
   image. But w can be almost anything (e.g., 31 wavelength samples from
   400:10:700).  We use this format frequently for spectral data.

   The RGB format is useful for imaging.  When w = 3, you can use
   conventional image() routines.  When w > 3, use imageSPD.

   The XW (space-wavelength) format is useful for computation.  In this
   format, for example, XW*spectralFunction yields a spectral response.

   The inverse routine is RGB2XWFormat.

   Othertimes, we use a space-wavelength format.  In this format, which is
   convenient for some matrix computations, the data are in a  (row*col) x
   color format. We call this XW format.

   The inverse routine is RGB2XWFormat

 See also: imageSPD, imagescRGB, imagescM, RGB2XWFormat

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

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