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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete label sampler #948

Open
themantalope opened this issue Aug 17, 2022 · 1 comment
Open

Complete label sampler #948

themantalope opened this issue Aug 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@themantalope
Copy link

馃殌 Feature

Sampler which is guaranteed to include all voxels with a certain label value.

Motivation

I am doing tumor localization/segmentation, and I need to sample patches of the images due to memory and spatial resolution constraints. I need to make sure that the tumors are within the sampled patches with a certain number of pixels/voxels between the edge of the tumor and the edge of the patch.

Pitch

Add a class to perform complete label sampling.

Alternatives

I've already rolled my own code to do this, but it might be useful for other folks who are working on similar things. Would be happy to contribute or figure out a way to add a class that is in line with the torchio framework.

@themantalope themantalope added the enhancement New feature or request label Aug 17, 2022
@fepegar
Copy link
Owner

fepegar commented Nov 13, 2022

Hi, @themantalope. Thanks for the pitch. I'm not sure what you mean by "complete label sampling". Could you please elaborate?

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

2 participants