monai.transforms.croppad.array#
A collection of “vanilla” transforms for crop and pad operations.
Classes
|
Pad the input data by adding specified borders to every dimension. |
|
Compute coordinates of axis-aligned bounding rectangles from input image img. |
|
Crop at the center of image with specified scale of ROI size. |
|
Crop at the center of image with specified ROI size. |
|
Perform crop operations on the input image. |
|
Crop an image using a bounding box. |
|
Pad the input data, so that the spatial sizes are divisible by k. |
|
Perform padding for a given an amount of padding in each dimension. |
|
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]::. |
|
Crop random fixed sized regions with the center being a foreground or background voxel based on the Pos Neg Ratio. 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 pos/neg=1::. |
|
Subclass of |
|
Crop image with random size or specific size ROI. |
|
Crop image with random size or specific size ROI to generate a list of N samples. |
|
Samples a list of num_samples image patches according to the provided weight_map. |
|
Resize an image to a target spatial size by either centrally cropping the image or padding it evenly with a user-specified mode. |
|
General purpose cropper to produce sub-volume region of interest (ROI). |
|
Performs padding to the data, symmetric for all sides or all on one side for each dimension. |