File Exchange

image thumbnail

Visualize output of BWLABEL

version 1.0.0.1 (1.88 KB) by

The function VISLABELS is used to visualize the output of BWLABEL.

42 Downloads

Updated

View License

VISLABELS is used to visualize the output of BWLABEL.
 
VISLABELS(L), where L is a label matrix returned by BWLABEL, displays each object's label number on top of the object itself.
 
Note: VISLABELS requires the Image Processing Toolbox.
 
Example:
bw = imread('text.png');
L = bwlabel(bw);
vislabels(L)
axis([1 70 1 70])

Comments and Ratings (9)

Steve Eddins

Steve Eddins (view profile)

PHH - use getframe or print with the -RGBImage option to get a raster image of the figure that you can pass to imwrite.

PHH

PHH (view profile)

Nice work!
by the way how can I save the image file using imwrite() function?

Micofludics

Works great. I like the explanations provided inside the m-file as well. Thanks!

Fer

Fer (view profile)

Paulo Camboim

Great! helped a lot for me on learning connected components.

Excellent

Peter E

works great for me. exactly what I was looking for. thanks a lot for this.

Steve Eddins

Saurabh - I give your bug report 2 stars. :-) There isn't enough information there for it to be useful. If you had included specific reproduction steps, I might be able to diagnose the problem. Also, please note that I do not normally test my File Exchange submissions on 4-year-old versions of MATLAB.

Saurabh Sharma

its not qorking for me.. i use matlab 13 sp1
Warning: Input arguments must be scalar.
> In C:\Documents and Settings\501633799\Desktop\New Folder\patent_implementation\vislabels.m at line 27
Warning: Input arguments must be scalar.
> In C:\Documents and Settings\501633799\Desktop\New Folder\patent_implementation\vislabels.m at line 27
??? In an assignment A(I) = B, a matrix A cannot be resized.

Error in ==> C:\Documents and Settings\501633799\Desktop\New Folder\patent_implementation\vislabels.m
On line 28 ==> I(L == 0) = background_shade;

Updates

1.0.0.1

Updated license

MATLAB Release
MATLAB 7.6 (R2008a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video