Function for translating the segmentations to a one-hot representation.
encodeUnet(segmentationsArray, segmentationLabels = NULL)
segmentationsArray | an array of shape ( |
---|---|
segmentationLabels | vector of segmentation labels. Note that a background label (typically 0) needs to be included. |
an n-D array of shape \( batchSize \times width \times height \times <depth> \times numberOfSegmentationLabels \)
Tustison NJ