ergb2idx.m
NAME
ergb2idx - covert RGB-matrix to index-matrix
SYNOPSIS
[image,colormap]=ergb2idx(matrix)
PARAMETER(S)
matrix RBG-matrix
image index-matrix
colormap color table
Stefan Mueller 2003-01-13