Code covered by the BSD License  

Highlights from
bwlabel via disjoint set

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 6.23 KB File ID: #34732
image thumbnail

bwlabel via disjoint set

by Su Dongcai

 

22 Jan 2012

simple cpp codes to label objects in 2D binary image

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Su Dongcai 23 Jan 2012 08:53:14
demo Su Dongcai 23 Jan 2012 08:53:14
disjoint set Su Dongcai 23 Jan 2012 08:53:14

Contact us at files@mathworks.com