|
|
| File Information |
| Description |
find_components finds the connected components of an image. Two pixels are in the same component if they are adjacent (north, south, east, or west, but not NW, SW, etc) and have the same value.
This was a bit of recreational weekend programming, in reply to Doug Hull's Puzzler of Aug. 18, 2008:
http://blogs.mathworks.com/pick/2008/08/18/puzzler-find-largest-connected-island/
It also serves as a nice example of DMPERM. To read more about dmperm, and to read its code, see CSparse or CXSparse on the File Exchange. |
| Acknowledgements |
This submission has inspired the following:
ISLANDS
|
| MATLAB release |
MATLAB 7.6 (R2008a)
|
| Other requirements |
Your results will vary if you use MATLAB 7.4 or earlier; DMPERM was upgraded for MATLAB 7.5. |
| Zip File Content |
|
| Other Files |
find_components/Contents.m, find_components/find_components.m, find_components/find_components.png, find_components/find_components_example.m, find_components/largest_component.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 09 Sep 2008 |
Nice example, better plotting. |
|
Contact us at files@mathworks.com