Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting boundary effects for erosion and dilation #70

Open
jakirkham opened this issue Dec 21, 2015 · 1 comment
Open

Setting boundary effects for erosion and dilation #70

jakirkham opened this issue Dec 21, 2015 · 1 comment

Comments

@jakirkham
Copy link
Contributor

It appears the convention for regions beyond the boundary to be zero when working with erosion and dilation. However, I often like to chose a different constant, namely one on binary images, so as not to completely lose objects on the borders with common structuring elements. Is there some way to do this with mahotas? I didn't see anything obvious from the documentation, but it doesn't mean I didn't missing something.

@luispedro
Copy link
Owner

Yes, this is hard coded for erosion/dilation, so the code would need to be extended to accept the boundary options. I'd welcome a patch, but it's not clear when I'd have time to do it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants