Bonjour à tous
mon problème est que je veux coloré les régions obtenues après segmentation
ceci et mon code:
et j'ai cette erreur qui sort:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 A = imread ('8.jpg'); se = strel(ones(3,3)); R = imdilate(A, se) - imerode(A, se); S = imhmin(R,16); wat= watershed (S); p = label2rgb (wat);% pour fair la coloration imshow (P);
.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 ??? Function LABEL2RGB expected its first input, L, to be two-dimensional. Error in ==> label2rgb>parse_inputs at 133 iptcheckinput(L,{'numeric' 'logical'}, ... Error in ==> label2rgb at 47 [label,map,zerocolor,order,fcnflag] = parse_inputs(varargin{:}); Error in ==> diapo at 7 p = label2rgb (wat);
comment je peut resoudre ca ?
Merci
Partager