monai.transforms.croppad.dictionary#

A collection of dictionary-based wrappers around the “vanilla” transforms for crop and pad operations defined in monai.transforms.croppad.array.

Class names are ended with ‘d’ to denote dictionary-based transforms.

Classes

BorderPadD

alias of BorderPadd

BorderPadDict

alias of BorderPadd

BorderPadd(keys, spatial_border[, mode, ...])

Pad the input data by adding specified borders to every dimension.

BoundingRectD

alias of BoundingRectd

BoundingRectDict

alias of BoundingRectd

BoundingRectd(keys[, bbox_key_postfix, ...])

Dictionary-based wrapper of monai.transforms.BoundingRect.

CenterScaleCropD

alias of CenterScaleCropd

CenterScaleCropDict

alias of CenterScaleCropd

CenterScaleCropd(keys, roi_scale[, ...])

Dictionary-based wrapper of monai.transforms.CenterScaleCrop.

CenterSpatialCropD

alias of CenterSpatialCropd

CenterSpatialCropDict

alias of CenterSpatialCropd

CenterSpatialCropd(keys, roi_size[, ...])

Dictionary-based wrapper of monai.transforms.CenterSpatialCrop.

CropD

alias of Cropd

CropDict

alias of Cropd

CropForegroundD

alias of CropForegroundd

CropForegroundDict

alias of CropForegroundd

CropForegroundd(keys, source_key[, ...])

Dictionary-based version monai.transforms.CropForeground.

Cropd(keys, cropper[, allow_missing_keys, lazy])

Dictionary-based wrapper of abstract class monai.transforms.Crop.

DivisiblePadD

alias of DivisiblePadd

DivisiblePadDict

alias of DivisiblePadd

DivisiblePadd(keys, k[, mode, method, ...])

Pad the input data, so that the spatial sizes are divisible by k.

PadD

alias of Padd

PadDict

alias of Padd

Padd(keys, padder[, mode, ...])

Dictionary-based wrapper of monai.transforms.Pad.

RandCropByLabelClassesD

alias of RandCropByLabelClassesd

RandCropByLabelClassesDict

alias of RandCropByLabelClassesd

RandCropByLabelClassesd(keys, label_key, ...)

Dictionary-based version monai.transforms.RandCropByLabelClasses. Crop random fixed sized regions with the center being a class based on the specified ratios of every class. The label data can be One-Hot format array or Argmax data. And will return a list of arrays for all the cropped images. For example, crop two (3 x 3) arrays from (5 x 5) array with ratios=[1, 2, 3, 1]::.

RandCropByPosNegLabelD

alias of RandCropByPosNegLabeld

RandCropByPosNegLabelDict

alias of RandCropByPosNegLabeld

RandCropByPosNegLabeld(keys, label_key, ...)

Dictionary-based version monai.transforms.RandCropByPosNegLabel.

RandCropD

alias of RandCropd

RandCropDict

alias of RandCropd

RandCropd(keys, cropper[, ...])

Base class for random crop transform.

RandScaleCropD

alias of RandScaleCropd

RandScaleCropDict

alias of RandScaleCropd

RandScaleCropd(keys, roi_scale[, ...])

Dictionary-based version monai.transforms.RandScaleCrop.

RandSpatialCropD

alias of RandSpatialCropd

RandSpatialCropDict

alias of RandSpatialCropd

RandSpatialCropSamplesD

alias of RandSpatialCropSamplesd

RandSpatialCropSamplesDict

alias of RandSpatialCropSamplesd

RandSpatialCropSamplesd(keys, roi_size, ...)

Dictionary-based version monai.transforms.RandSpatialCropSamples.

RandSpatialCropd(keys, roi_size[, ...])

Dictionary-based version monai.transforms.RandSpatialCrop.

RandWeightedCropD

alias of RandWeightedCropd

RandWeightedCropDict

alias of RandWeightedCropd

RandWeightedCropd(keys, w_key, spatial_size)

Samples a list of num_samples image patches according to the provided weight_map.

ResizeWithPadOrCropD

alias of ResizeWithPadOrCropd

ResizeWithPadOrCropDict

alias of ResizeWithPadOrCropd

ResizeWithPadOrCropd(keys, spatial_size[, ...])

Dictionary-based wrapper of monai.transforms.ResizeWithPadOrCrop.

SpatialCropD

alias of SpatialCropd

SpatialCropDict

alias of SpatialCropd

SpatialCropd(keys[, roi_center, roi_size, ...])

Dictionary-based wrapper of monai.transforms.SpatialCrop.

SpatialPadD

alias of SpatialPadd

SpatialPadDict

alias of SpatialPadd

SpatialPadd(keys, spatial_size[, method, ...])

Dictionary-based wrapper of monai.transforms.SpatialPad.