Function that removes object when touching border? - Image/ Video processing
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akira Chan
am 4 Aug. 2015
Kommentiert: Akira Chan
am 4 Aug. 2015
Greeting,
Hello everyone, I just want to ask if there is a function in matlab where when the object touches the border of the camera or image, it will be deleted from the image? Like after I process my image, when the white part of the object was in contact with the border, I want to remove that part entirely. Thank you.
Regards, Akira
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 4 Aug. 2015
Yes, it's called imclearborder():
binaryImage = imclearborder(binaryImage);
You can specify either 4 or 8 connectivity if you want via the second input argument.
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!