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

On polygonize add option for extracting contours with marching cubes (gdal_contour) from probability/distance mask #23

Open
munshkr opened this issue Nov 22, 2021 · 0 comments
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@munshkr
Copy link
Member

munshkr commented Nov 22, 2021

Currently polygonize allows the user to specify a threshold for binarizing a probability mask before polygonizing it, so that the resulting vector file contains only polygons with probabilty equal or greater than specified threshold.

An alternative that could return better shaped polygons is to extract contours by using the marching cubes algorithm in gdal_contour

For example:

gdal_contour -p -inodata -b 1 -fl {thresh} {src_mask} {dst_shp}

where {thresh} is the isolevel (i.e. probability) to extract.

@munshkr munshkr added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant