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

Function to save out a mask as a geotif #16

Open
k034b363 opened this issue Sep 11, 2024 · 0 comments · May be fixed by #17
Open

Function to save out a mask as a geotif #16

k034b363 opened this issue Sep 11, 2024 · 0 comments · May be fixed by #17
Assignees
Labels
enhancement New feature or request

Comments

@k034b363
Copy link
Contributor

It would be useful to be able to save out a mask from plantcv segmentation steps while retaining the georeference information from the original image. Some possible methods of analysis, like rasterstats.zonal_stats, require a file as input, and it is also nice to have the option to save intermediate steps in long workflows.

The proposed function would take a file path to the original image, file path to a shape file if the image was cropped during read_geotif, and an output file path. Detection of whether the mask was rgb or binary could happen programmatically, because a couple of steps would change between those options.

@k034b363 k034b363 added the enhancement New feature or request label Sep 11, 2024
@k034b363 k034b363 self-assigned this Sep 11, 2024
@k034b363 k034b363 linked a pull request Sep 17, 2024 that will close this issue
8 tasks
@k034b363 k034b363 linked a pull request Sep 17, 2024 that will close this issue
8 tasks
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

Successfully merging a pull request may close this issue.

1 participant