Home > ISET > utility > image > imagescRGB.m

imagescRGB

PURPOSE ^

Display a scaled RGB format image.

SYNOPSIS ^

function rgbim = imagescRGB(rgbim,varargin)

DESCRIPTION ^

 Display a scaled RGB format image.  

   imagescRGB(rgbim,[gamma]);
   imagescRGB(rgbim,row,col,[gamma])
    
  Prior to display negative values are clipped, and the clipped data are
  scaled to a maximum of 1.

  If the exponent gamma is included, then rgbim .^ gamma are displayed;
 
    The routine accepts data in XW and RGB format.  
    In XW format case use:                imagescRGB(img,row,col,[gamma])
    If the data are in RGB format use:    imagescRGB(img,[gamma])

 Examples:
   foo = load('trees'); [r,c] = size(foo.X);
   for ii=1:3, rgb(:,:,ii) = reshape(foo.map(foo.X,ii),r,c); end

   rgbScaled = imagescRGB(rgb);
   rgbScaled = imagescRGB(rgb,0.3);

   rgbXW = RGB2XWFormat(rgb);
   rgbScaled = imagescRGB(rgbXW,r,c,0.3);

 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