Obtaining the largest object in an image
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
med-sweng
am 28 Nov. 2014
Kommentiert: Image Analyst
am 1 Dez. 2014
Say that I have an image with a big object, and then small objects spread apart.
How can I retrieve only that big object?
I think we can use "bwconncomp"?
But, how exactly can we do that here?
Thanks.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 28 Nov. 2014
I thought I've given this to you before. Oh well, maybe it was someone else. I've posted it lots and lots of times. Here it is again. The function inside the attached demo will let you extract the N largest or smallest blobs in a binary image.
2 Kommentare
Image Analyst
am 1 Dez. 2014
Yes. But you might want to multiply it by 255 first so you can see it without scaling, like if you want a nice thumbnail image in your operating system
imwrite(uint8(255*binaryImage), filename);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink 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!