File Exchange

image thumbnail

bwlabel via disjoint set

version (6.23 KB) by Su Dongcai
simple cpp codes to label objects in 2D binary image

1 Download

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
%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));
syllabus about Disjoint set:

Cite As

Su Dongcai (2020). bwlabel via disjoint set (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Georg Stillfried

It seems that a Windows computer is required to compile the function.

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!