4.0

4.0 | 3 ratings Rate this file 136 downloads (last 30 days) File Size: 1.88 KB File ID: #19665

Visualize output of BWLABEL

by Steve Eddins

 

21 Apr 2008 (Updated 22 Apr 2008)

Code covered by BSD License  

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

Download Now | Watch this File

File Information
Description

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])

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
20 May 2008 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;

28 May 2008 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.

04 Jul 2008 Peter E

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

28 Aug 2008 Paulo Camboim

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

Excellent

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui Steve Eddins 22 Oct 2008 09:58:40
display Steve Eddins 22 Oct 2008 09:58:40
annotation Steve Eddins 22 Oct 2008 09:58:40
bwlabel Cristina McIntire 06 Feb 2009 11:15:33
labeling Cristina McIntire 06 Feb 2009 11:15:33
component Cristina McIntire 06 Feb 2009 11:15:33
connected Cristina McIntire 06 Feb 2009 11:15:33
bwlabel Grant 20 Aug 2009 02:08:57
connected Grant 20 Aug 2009 02:09:08
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com