Operator to draw a set of 2D-regions (MTBRegion2DSet) to an image.
Input regions:
Regions to be drawn to an image
Draw type:
The type of image to be drawn:
LABEL_IMAGE: Draws a gray value image where regions are labeled by their index in the set + 1.
ID_IMAGE: Draws a gray value image where regions are labeled by their region ID.
MASK_IMAGE: Draw a mask image with equal gray values for all regions. Requires Gray value to be set.
COLOR_IMAGE: Draws a mask image with colored regions. Requires whether Color to be specified exclusively to draw regions with the same color, or Random generator to be set exclusively to paint randomly colored regions.
TRANSPARENT_IMAGE: Draws a mask image with colored regions (see COLOR_IMAGE) but the regions are transparent to show the underlying intensity structure of a given Target image.
Output-image type:
Type of the output image. Must be set according to the Draw type
Gray value:
Gray value to draw regions with if Draw type=MASK_IMAGE
Color:
Color to draw regions with if Draw type=[COLOR_IMAGE|TRANSPARENT_IMAGE]
Random generator:
Random generator to draw regions with random colors if Draw type=[COLOR_IMAGE|TRANSPARENT_IMAGE]
Target image:
Image to draw regions to if Draw type=TRANSPARENT_IMAGE
Result image
Image with regions drawn.