1 function Display_Boundary (Boundary)
\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
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
11 figure; image(Mb*255); colormap(gray(256));
\r