Skip to content

Defining an ROI to Restrict Sampling #577

Discussion options

You must be logged in to vote

Hi Brayden,

this mask is not settable. It is intended for images where the object of interest (like the brain) is surrounded by black background pixels. For those images it is common practice to only use the brain region for normalization.

If you want to only train on specific ROIS, the best way to do that would be to crop the images to the desired ROI before you give them to nnU-Net (as you suggested). Mote that nnU-Net will then only be able to make predictions in the parts that are covered by the ROIs, so you will need to also crop all the images you intend to apply the models to.

Best,
Fabian

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BraydenSchott
Comment options

@HuiLin0220
Comment options

@FabianIsensee
Comment options

Answer selected by FabianIsensee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants