add_channels — Add gray values to regions.
The operator add_channels creates for each region in Regions an image, "painting" the pixel values from the input image Image into the region. The created images are returned as a tuple in the parameter GrayRegions. All channels of Image are adopted. The definition domain of an output image is calculated as the intersection of the definition domain of the image with the region. Thus, the new definition domain can be a subset of the input region. The size of the image matrix is not changed.
Input regions (without pixel values).
Input image with pixel values for regions.
Output image(s) with regions and pixel values (one image per input region).
Number of elements: Regions == GrayRegions
threshold, regiongrowing, gen_circle, draw_region
threshold, regiongrowing, get_domain
full_domain, get_domain, intersection