How do morphological operations work at/near image baundaries?
Mostrar comentarios más antiguos
Hi
Hi, I want to track the edge of a feature in an image. The feature extends from the lower boundary to the top boundary of the image and so does the edge I want to track. An example of this looks like:

Before I identify the edge I use different morphological operations imclose() and imopen(). The result is sometimes not as I expected near the image boundaries. Often the line indicating the edge is vertical (like at the top boundary) when it should be inclined to vertical (Like at the lower boundary).
When I apply filters like:
h = fspecial('disk',12);
Im3 = imfilter(Im2,h,'replicate');
I have the option to choose how the filter behaves near the boundaries using options like 'replicate'. That made me think:
How does the imclose() and imopen() work near the image boundaries and is it possible to control it in a similar way to the boundary options for imfilter()?
Best regards, Brian
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Morphological Operations en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!