Separating Connected Objects Effectively in Image
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Serg Zhelezniak
am 12 Nov. 2017
Kommentiert: Image Analyst
am 12 Nov. 2017
Hello, I am attempting to separate several connected objects that are often only connected by one pixel (see image). I want to have all connected objects be separate from each other i.e. remove the particular pixel that's causing the issue. I have been trying to use imerode function but I keep on removing more pixels than I would like. Any advice would be greatly beneficial.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169525/image.png)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 12 Nov. 2017
They are separated if you use 4-connectedness. For subsequent operations, like bwconncomp() or bwlabel(), just specify 4-connectedness instead of the default 8-connectedness.
0 Kommentare
Weitere Antworten (1)
Jose Marques
am 12 Nov. 2017
Hello. Have you tried "imopen"?
Please, post your code and figures so we can help you.
2 Kommentare
Image Analyst
am 12 Nov. 2017
Again, just use 4-connected like I said in my answer and you won't have the problem!
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for IP Cameras 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!