Blob Coloring Algorithm implementation Matlab
Show older comments
Hi every one can you help me how to implement blob coloring algorithm using matlab?Any link or any source code.Thanks in Advance
Answers (2)
Walter Roberson
on 19 Oct 2012
0 votes
You mean like bwlabel() followed by ind2rgb() ?
Image Analyst
on 19 Oct 2012
I just do it like this:
% Label each blob with 8-connectivity, so we can make measurements of it
[labeledImage numberOfBlobs] = bwlabel(binaryImage, 8);
% Apply a variety of pseudo-colors to the regions.
coloredLabelsImage = label2rgb (labeledImage, 'hsv', 'k', 'shuffle');
% Display the pseudo-colored image.
imshow(coloredLabelsImage);
Good luck with reinventing these functions.
5 Comments
Algorithms Analyst
on 20 Oct 2012
Image Analyst
on 20 Oct 2012
not targeting to answers...need more information to provide answers...
Algorithms Analyst
on 20 Oct 2012
Image Analyst
on 20 Oct 2012
Why without using built-in functions? You mean like if you had written it in C? Why make it hard on yourself? I was going to suggest things like colormap() and intlut() to do it on a more low-level basis, but even those are built-in functions. I'm not interested in reinventing the wheel and doing it the hard way when I don't have to, so good luck with that.
Algorithms Analyst
on 20 Oct 2012
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!