Bonjour,
voila mon code :
Et ce que j'ai comme erreur et je ne sais pas comment la corriger
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 model_rot = imresize(frontalmodel,[ly wx],'bilinear'); % Rotate the model model_rot = imrotate(model_rot,-angle,'bilinear'); % Get the coordinates of the rotated image [l,r,u,d] = recsize(model_rot); % Generate a new image that elects only the model region model_rot=imcrop(model_rot,[l u (r-l) (d-u)]); % Get rid of the boundary noise model_rot = clean_model(model_rot); bwmodel_rot = (model_rot >=1); % Compute the center of the rotated face model %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% bw=bwfill(bwmodel_rot,'holes'); area = bwarea(bw); [m n] =size(bw); bw=double(bw);
merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 ?? Error using ==> | Number of array dimensions must match. Error in ==> D:\matlab6p5\toolbox\images\images\bwfill.m On line 136 ==> BW2 = J | I; Error in ==> D:\matlab6p5\toolbox\images\images\bwfill.m On line 97 ==> J = bwfill(J, cSeeds, rSeeds, style); Error in ==> D:\matlab6p5\work\processregion1.m On line 119 ==> bw=bwfill(bwmodel_rot,'holes'); Error in ==> D:\matlab6p5\work\detect.m On line 65 ==> [RectCoord,imsourcegray] = processregion1(imsourcegray,bwsegment,numholes,frontalmodel);
Partager