www.gusucode.com > images 案例代码 matlab源码程序 > images/FillImageFromSpecifiedStartingPointExample.m
%% Fill Image from Specified Starting Point % % Copyright 2015 The MathWorks, Inc. BW1 = logical([1 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0]); BW2 = imfill(BW1,[3 3],8)