www.gusucode.com > images 案例代码 matlab源码程序 > images/ComputeBoundariesAndPlotOnImageExample.m

    %% Compute Boundaries and Plot on Image
% 
%%
% Read image.

% Copyright 2015 The MathWorks, Inc.

BW = imread('blobs.png');
%%
% Compute boundaries.
B = bwboundaries(BW);
%%
% Display image and plot boundaries on image.
imshow(BW)
hold on
visboundaries(B)