RGB = Ind2RGB(IndexImage, ColorMap); RGB = Ind2RGB(IndexImage, ColorMap, BackGroundColor);
2D matrix of type uint8, uint16, uint32 or double. If IndexImage is of type double, all elements must be integer numbers >= 0.
matrix of type uint8, uint16, uint32 or double with three columns
vector with three columns, can be of type uint8, uint16, uint32 or double. If BackGround is of type double, all elements must be between zero and one. This parameter is optional. The default background color is white.
This function converts an indexed image to an RGB image. All pixels that have values > 1 are mapped to a row of the color map. All zero valued pixels are mapped to the background color.