add_channelsadd_channelsAddChannelsAddChannelsadd_channels (Operator)

Name

add_channelsadd_channelsAddChannelsAddChannelsadd_channels — 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)

def add_channels(regions: HObject, image: HObject) -> HObject

Description

The operator add_channelsadd_channelsAddChannelsAddChannelsAddChannelsadd_channels creates an array of images GrayRegionsGrayRegionsGrayRegionsGrayRegionsgrayRegionsgray_regions with an element for every input region in RegionsRegionsRegionsRegionsregionsregions. These images correspond to the input image ImageImageImageImageimageimage with a reduced domain, namely the intersection of the definition domain of the input image with the region. Thus, the new definition domain can be a subset of the region. Thereby the size of the image matrix is not changed and all channels of ImageImageImageImageimageimage are adopted.

Execution Information

Parameters

RegionsRegionsRegionsRegionsregionsregions (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Input regions (without pixel values).

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

Input image with pixel values for regions.

GrayRegionsGrayRegionsGrayRegionsGrayRegionsgrayRegionsgray_regions (output_object)  image(-array) objectHImageHObjectHImageHobject * (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

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle, draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region

Possible Successors

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, get_domainget_domainGetDomainGetDomainGetDomainget_domain

Alternatives

change_domainchange_domainChangeDomainChangeDomainChangeDomainchange_domain, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain

See also

full_domainfull_domainFullDomainFullDomainFullDomainfull_domain, get_domainget_domainGetDomainGetDomainGetDomainget_domain, intersectionintersectionIntersectionIntersectionIntersectionintersection

Module

Foundation