how to merge two different blob?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tan Wen Kun
am 26 Nov. 2015
Kommentiert: Image Analyst
am 28 Nov. 2015
I got 3 color blob(1,2,3).
Firstly, I want to write a loop to create a table which state which blob is connected with another blob.
Then, I want try to merge them to form a same blob.How to solve this?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Nov. 2015
It's a poor description of what's going on. I'm going to assume you have an image that you thresholded to get a binary image and then you called bwlabel() and label2rgb() to colorize the blobs differently. So you should have the binary image already. If you don't for some reason, and you don't have the labeled image either, you can recover it from using any
binaryImage = logical(any(rgbImage, 3));
6 Kommentare
Image Analyst
am 28 Nov. 2015
That will work for gray scale images. If it's color you need to do
PixelValue = MyImage(y, x, :);
or you can use impixel() for either color or gray scale images.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!