Home > freetb4matlab > image > ind2rgb.m

ind2rgb

PURPOSE ^

% Convert an indexed image to red, green, and blue color components.

SYNOPSIS ^

function [R, G, B] = ind2rgb (X, map)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{rgb} =} ind2rgb (@var{x}, @var{map})
% @deftypefnx {Function File} {[@var{r}, @var{g}, @var{b}] =} ind2rgb (@var{x}, @var{map})
% Convert an indexed image to red, green, and blue color components.
% If the colormap doesn't contain enough colors, pad it with the
% last color in the map.
% If @var{map} is omitted, the current colormap is used for the conversion.
% @seealso{rgb2ind, image, imshow, ind2gray, gray2ind}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003