Blob Coloring Algorithm implementation Matlab

조회 수: 1 (최근 30일)
Algorithms Analyst
Algorithms Analyst 2012년 10월 19일
Hi every one can you help me how to implement blob coloring algorithm using matlab?Any link or any source code.Thanks in Advance

답변 (2개)

Walter Roberson
Walter Roberson 2012년 10월 19일
You mean like bwlabel() followed by ind2rgb() ?
  댓글 수: 2
Algorithms Analyst
Algorithms Analyst 2012년 10월 19일
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.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2012년 10월 19일
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
Image Analyst
Image Analyst 2012년 10월 20일
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
Algorithms Analyst 2012년 10월 20일
Ohh ok do it directly then...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by