Navigation

Operators and Keywords

Function List:

C++ API

rgb2ind.m File Reference


Functions

endif if (nargin==1) rgb
 if (length(size(rgb))==3 &&size(rgb, 3)==3) R
else error ("rgb2ind: argument is not an RGB image")

Variables

 function [X, map]
 G = rgb(:,:,2)
 B = rgb(:,:,3)

Function Documentation

else error ( "rgb2ind: argument is not an RGB image  ) 

if ( length(size(rgb))  = =3 &&size(rgb, 3)==3  ) 

endif if ( nargin  = =1  ) 


Variable Documentation

B = rgb(:,:,3)

function[X, map]

Initial value:

 rgb2ind (R, G, B)

  if (nargin != 1 && nargin != 3)
    print_usage ()

test global G = rgb(:,:,2)