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

Add post-processing options to script\segment_orthomosaic.py #26

Open
dbuscombe-usgs opened this issue Mar 7, 2023 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@dbuscombe-usgs
Copy link
Member

This script uses 50% overlap in 2 dimensions, with a 'mode' resampling algorithm, to attempt to smooth over noise.

However, labels have error and post-processing options would also be nice. This would require reading the label mosaic tiff using rasterio, and carrying out one of a set of pre-defined filters. In the past, I have used morphological operators from scikit-image to remove small holes and blobs. This could be done on each binary mask (each individual class map), and any gaps can be filled in using inpainting (of which there is a quick method inside doodleverse_utils already)

@dbuscombe-usgs dbuscombe-usgs self-assigned this Mar 7, 2023
@dbuscombe-usgs dbuscombe-usgs added the enhancement New feature or request label Mar 7, 2023
@dbuscombe-usgs
Copy link
Member Author

Once stable, these options may be adopted for seg2map as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant