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])
Steve Eddins (2021). Visualize output of BWLABEL (https://www.mathworks.com/matlabcentral/fileexchange/19665-visualize-output-of-bwlabel), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Nice!
Excellent!
Great!
PHH - use getframe or print with the -RGBImage option to get a raster image of the figure that you can pass to imwrite.
Nice work!
by the way how can I save the image file using imwrite() function?
Works great. I like the explanations provided inside the m-file as well. Thanks!
Great! helped a lot for me on learning connected components.
Excellent
works great for me. exactly what I was looking for. thanks a lot for this.
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.
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;