I want to use the label2rgb
function to construct a color image with a labeled image issued from a segmentation process.
So I compute a color map n
-by-3 which contain the meanvalue of each region detected in the segmentation. and I make this:
Lrgb = label2rgb(L, coul);
where L
is tha labeled image, but I got this error:
??? Error using ==> label2rgb>parse_inputs at 147
Invalid entry for MAP.Error in ==> label2rgb at 50 [label,map,zerocolor,order,fcnflag] = parse_inputs(varargin{:});
Error in ==> test at 241 Lrgb = label2rgb(L, coul);
Thank you,