Blob Coloring Algorithm implementation Matlab
1 次查看(过去 30 天)
显示 更早的评论
Hi every one can you help me how to implement blob coloring algorithm using matlab?Any link or any source code.Thanks in Advance
0 个评论
回答(2 个)
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
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!