Remove larger connected components based on pixels
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tanmoy
am 12 Jun. 2015
Beantwortet: Image Analyst
am 15 Jun. 2015
bwareaopen(bw,p) can delete pixels of connected components below p pixels. I want to delete the connected components above p pixel.
Say, if a connected component has 19 pixel, & we set p =20, bwareaopen() can delete that component. But, I need to delete connected component that has ,say 51 pixels in it. A function to remove larger connected components (above the threshold "p").
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Eric Lin
am 15 Jun. 2015
This answer provides a nice solution to your question.
Basically, to delete components greater than a threshold, use a logical complement and AND operation to mask out the larger components.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox 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!