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

A utility to save slidescore annotations as multi-resolution masks in .tiff file format. #57

Closed
AjeyPaiK opened this issue Dec 13, 2021 · 3 comments
Labels
enhancement New feature or request Stale

Comments

@AjeyPaiK
Copy link
Member

  1. The class must be able to take Shapely objects containing slidescore annotations as input.
  2. It must save the annotations as multi-resolution images in the tiff format.
  3. The utility can be used during annotation preprocessing for quick access during training.
@AjeyPaiK AjeyPaiK added the enhancement New feature or request label Dec 13, 2021
@jonasteuwen
Copy link
Contributor

It will not really close the issue, but you want shapely -> mask? We can figure out how to store multiple labels in a tiff. We can of course do 1, 2, 3 etc as values, but that doesn't allow overlapping classes.

@AjeyPaiK
Copy link
Member Author

AjeyPaiK commented Jan 5, 2022

def _gen_pyvips_mask(self, polygons:list, scaled_dims:tuple, real_dims:tuple) -> pyvips.Image:

Can you check this out? We can do this but with shapely polygons instead of lists like how I've implemented here.

@github-actions
Copy link

github-actions bot commented Mar 7, 2022

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

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

Successfully merging a pull request may close this issue.

2 participants