bwlabel via disjoint set

simple cpp codes to label objects in 2D binary image
502 Downloads
Updated 22 Jan 2012

View License

This file adapt a state of art structure 'disjoint set' to label objects in an binary
2D image. Which have similar effect as the matlab function 'bwlabel' in case of 8-connected
objects.
%please run the following commands to duplicate the screen shot:
mex vcBwlable.cpp %compile the cpp file
im = imread('coins.png');
L = djs_bwlable(im2bw(im));
%reference
syllabus about Disjoint set:
http://www.google.com.hk/url?sa=t&rct=j&q=disjoint+set&source=web&cd=4&ved=0CDwQFjAD&url=http%3A%2F%2Fwww.cs.iupui.edu%2F~xkzou%2Fteaching%2FCS580%2FDisjointSets.ppt&ei=vlEaT_iSKuWTiQfym6T3Cw&usg=AFQjCNG4v--8rDjH2j1f620owySUkZcRyA

Cite As

Su Dongcai (2024). bwlabel via disjoint set (https://www.mathworks.com/matlabcentral/fileexchange/34732-bwlabel-via-disjoint-set), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Modify Image Colors in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

djs_bwlabel/

Version Published Release Notes
1.0.0.0