When working with an image and filling in gaps, do you only choose one: imerode, imdilate, imopen, imclsoe and imfill
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Samantha Florimo
am 2 Dez. 2014
Beantwortet: Image Analyst
am 2 Dez. 2014
Individually I understand the function of all of the commands. However, when asked to fill in the gaps of an image, do you only use one of them or use them all?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 2 Dez. 2014
Assuming your foreground blobs are white/true/1, imerode and imopen will enlarge the black areas and eat away at the white areas. imdilate and imclose will enlarge/smooth the white areas and fill in black areas near borders/perimeters. imfill() fills in black islands in a white blob. Usually you use only one: imfill. However if you want your blobs to have a bit smoother outline, then you can use imclose() before imfill().
0 Kommentare
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!