1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
% FIND_COMPONENTS finds connected components in an image.
% This is a solution to Doug Hull's Puzzler, in his Aug 18, 2008 blog:
% http://blogs.mathworks.com/pick/2008/08/18/
%
% Files
% find_components - finds all connected components of an image.
% find_components_example - gives an example usage of find_components.
% largest_component - finds the largest connected component in an image.
%
% Example
% find_components_example % prints and plots and small example
% find_components_example(2) % a large example, just plotting
% Copyright 2008, Timothy A. Davis, http://www.suitesparse.com
|