The transformations should be applied to both images and the masks (except like normalization)
Windowing: Use brain, bone, and soft tissue windowing as 3 stacked channels. Added in #22
Normalization: Get normalized values corresponding to each windowing type. Done in commit d7996cc
Defaults: Implement some set of base/default transformations that can be used directly in a dataloader. Added a sample in commit 5538bc1.Other transformations can be experimented later, with a similar format.
How will it help? - We might want to "highlight" certain regions for better segmentation.
Possible add functionality to perform windowing to the existing Patient or Volume classes. A better way would be to use windowing as PyTorch transformations (with some sort of randomization).
For some reason, based on the default splitting (taken from actual competition), all the scans in the validation set are without mandible annotation. This can be fixed by simply resampling the examples from the combined train and validation sets, effectively creating new splits.
Note that the test data should not be used at any cost for this.
Does the transform we apply in the getitem to the images/masks include a collection of transformations already or do we need to add a loop if we want to have more than one transformation? (have not used Albumentations before)
Even for 2D models, if we want to crop unnecessary pixels (chest region, the CT scanner artifacts, etc), it might important to have all the scans on the same scale.
Each CT scan is of dimension (# slides, 512, 512), where a lot of volume is unnecessary - maybe due to scanner artifacts, or slices below the neck etc. Add functionality to crop only "useful" patch of volume from the entire CT scan.