]> AND Private Git Repository - these_gilles.git/blob - THESE/codes/meanshift/Ms_segmenter/Display_Boundary.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
28/08 matin
[these_gilles.git] / THESE / codes / meanshift / Ms_segmenter / Display_Boundary.m
1 function Display_Boundary (Boundary)\r
2 \r
3 Max_x = max(Boundary(1, :));\r
4 Min_x = min(Boundary(1, :));\r
5 Max_y = max(Boundary(2, :));\r
6 Min_y = min(Boundary(2, :));\r
7 \r
8 Mb = zeros(Max_x-Min_x+1, Max_y-Min_y+1);\r
9 Mb(sub2ind(size(Mb), Boundary(1, :)+1-Min_x, Boundary(2, :)+1-Min_y)) = 1;\r
10 \r
11 figure; image(Mb*255); colormap(gray(256));\r