operations#

Grid(shape_zyx, origin, spacing, direction)

The CT grid all ROIs are put on (same conventions as the to_* conversions).

dilate(roi, grid, mm[, output, reduction])

Grow one ROI by a margin in mm.

erode(roi, grid, mm[, output, reduction])

Shrink one ROI by a margin in mm (given as a positive number).

intersect(rois, grid[, margins, output, ...])

Intersection of several ROIs: rois[0] & rois[1] & ...

subtract(main, others, grid[, margins, ...])

Subtract ROIs: main minus (others[0] | others[1] | ...).

union(rois, grid[, margins, output, reduction])

Union of several ROIs: rois[0] | rois[1] | ...