PROCESSMEDIMAGES Procedure

ROI2MASK Statement

  • ROI2MASK <options>;

The ROI2MASK statement specifies the values for the operation in which a region of interest (ROI) is used as a "mask" to remove pixels from an image in the input table. This statement currently supports image-specific regions that are loaded using the LOADDICOMDATA procedure from files under the radiotherapy extension of the DICOM standard (DICOM-RT).

You can specify the following options:

OUTPUTBACKGROUND=double

specifies the output background value for the ROI conversion operation. By default, OUTPUTBACKGROUND=0.

PIXELINTENSITY=double | IMAGE

specifies the value of mask pixel intensities for the ROI conversion operation. You can specify a double, or you can specify IMAGE if you want to use image pixel intensities for this operation. By default, PIXELINTENSITY=255.

ROICONTOUR=variable
ROICONTOURSEQUENCE=variable

specifies the name of the column in the input image table that contains DICOM ROI contour sequence data. By default, ROICONTOUR=_ROIContourSequence_.

ROIDISPLAYCOLOR=variable

specifies the display color by which to filter the ROIs.

SENSITIVITY=double
CORRECTIONSENSITIVITY=double

specifies the correction-sensitivity value for the ROI conversion operation, where double has a range of 0.25 to 1. By default, SENSITIVITY=0.25.

TYPE=DICOMRT

specifies the type for the ROI conversion operation.

You can specify the following value:

DICOMRT

extracts regions of interest from an image by using the metadata in the input table columns.

Last updated: March 26, 2026