www.gusucode.com > images 案例代码 matlab源码程序 > images/FindTenLargestPerimeteresExample.m
%% Find Which Ten Objects Have Largest Perimeters % %% % Read image. % Copyright 2015 The MathWorks, Inc. BW = imread('text.png'); %% % Find the ten objects in the image with the largest perimeters and display % filtered image. BW2 = bwpropfilt(BW,'perimeter',10); figure; imshow(BW2) title('Objects with the Largest Perimeters')