ClassesClasses | | Operators

add_channelsadd_channelsAddChannelsAddChannels (Operator)

Name

add_channelsadd_channelsAddChannelsAddChannels — Add gray values to regions.

Signature

add_channels(Regions, Image : GrayRegions : : )

Herror add_channels(const Hobject Regions, const Hobject Image, Hobject* GrayRegions)

Herror T_add_channels(const Hobject Regions, const Hobject Image, Hobject* GrayRegions)

void AddChannels(const HObject& Regions, const HObject& Image, HObject* GrayRegions)

HImage HRegion::AddChannels(const HImage& Image) const

static void HOperatorSet.AddChannels(HObject regions, HObject image, out HObject grayRegions)

HImage HRegion.AddChannels(HImage image)

Description

The operator add_channelsadd_channelsAddChannelsAddChannelsAddChannels creates for each region in RegionsRegionsRegionsRegionsregions an image, "painting" the pixel values from the input image ImageImageImageImageimage into the region. The created images are returned as a tuple in the parameter GrayRegionsGrayRegionsGrayRegionsGrayRegionsgrayRegions. All channels of ImageImageImageImageimage 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.

Execution Information

Parameters

RegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHobject

Input regions (without pixel values).

ImageImageImageImageimage (input_object)  (multichannel-)image objectHImageHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Input image with pixel values for regions.

GrayRegionsGrayRegionsGrayRegionsGrayRegionsgrayRegions (output_object)  image(-array) objectHImageHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Output image(s) with regions and pixel values (one image per input region).

Number of elements: Regions == GrayRegions

Possible Predecessors

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, gen_circlegen_circleGenCircleGenCircleGenCircle, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion

Possible Successors

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, get_domainget_domainGetDomainGetDomainGetDomain

Alternatives

change_domainchange_domainChangeDomainChangeDomainChangeDomain, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain

See also

full_domainfull_domainFullDomainFullDomainFullDomain, get_domainget_domainGetDomainGetDomainGetDomain, intersectionintersectionIntersectionIntersectionIntersection

Module

Foundation


ClassesClasses | | Operators