Home > ISET > vcamera > sensor > sensorColorOrder.m

sensorColorOrder

PURPOSE ^

Return the list of ISET color descriptions

SYNOPSIS ^

function [cfaOrdering, cfaMap] = sensorColorOrder(format)

DESCRIPTION ^

Return the list of ISET color descriptions

   [cfaOrdering, cfaMap]  = sensorColorOrder([format])

 Purpose:
    The function stores how ISET associates color filter names with color
    values.  The cfaOrdering is a list that describes letters associated
    with color names.  The cfaMap are the color values describing these
    names.

    The first letter in a filter name (e.g., rStanford) is a hint about the
    color appearance of that filter (e.g., red).  The associations between
    the hint ('r') and color appearance are contained here. The letter 'r'
    is associated with the color map entry of (1,0,0).  Other filter names
    used by the simulator are given plausible color hints:

    The set of color hints are r,g,b,c,y,m,w(hite).

    There are a few other free color names that are undefined, (u,x,z,o)
    for experimenting.  These are given color map entries of
       u -> [.4, .7, .3]; x -> [.7 .5 .3]; z -> [.2 .5 .8] and o -> [.5 .5 .5];

    The set of filter names in an ISA have distinct olor hints.  So, using
    rStanford, gStanford is OK; but do not use rStanford, rSony.  Even if
    both filters are red, use a different color hint, say rStanford,
    xSony.

  The normal format used to return the list of color letters is a cell array.  If the
  function argument format is set to 'string', then the cfaOrdering is
  returned as a string. 

  Example:
   [c,mp] = sensorColorOrder('string');
   [c,mp] = sensorColorOrder;

  See also:  sensorImageColorArray, sensorDetermineCFA

 Copyright ImagEval Consultants, LLC, 2003.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003