Blob Coloring Algorithm implementation Matlab

Hi every one can you help me how to implement blob coloring algorithm using matlab?Any link or any source code.Thanks in Advance

Respuestas (2)

Walter Roberson
Walter Roberson el 19 de Oct. de 2012

0 votos

You mean like bwlabel() followed by ind2rgb() ?

2 comentarios

Thanks for your response.I do not want to use matlab builtin functions.So can you do it without using matlab builtin functions...THe blob coloring algorithm implementaiton.

Iniciar sesión para comentar.

Image Analyst
Image Analyst el 19 de Oct. de 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 comentarios

not targeting to solution....need more source code for help...
Image Analyst
Image Analyst el 20 de Oct. de 2012
not targeting to answers...need more information to provide answers...
Hi Image Analyst thank you for your response.I need to implement the blob coloring algorithm in matlab without using built in function.The algorithm is common to all.I need the source code for it.. Thanks in advance
Image Analyst
Image Analyst el 20 de Oct. de 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.
Ohh ok do it directly then...

Iniciar sesión para comentar.

Preguntada:

el 19 de Oct. de 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by