Project-MONAI / Project-MONAI/MONAI

Add RandCropByPosPercent transform

Open
#586 6 comments 2 reactions 2 assignees View on GitHub

@yiheng-wang-nv is already working on this.

Since Nov 30, 2020.

Contribution wanted Feature request WG: Transforms
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

Is your feature request related to a problem? Please describe.
Currently, the balance sampling’s positive window is defined by the corresponding label of the window’s central location. We need the flexibility to define the positive windows by thresholding the percentage of positive pixels in a window instead of only central data.
Consider as "positive" a patch that has some foreground voxels anywhere above percentage, and "negative" a patch that has none (rather than looking at the central voxel only).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.