add_channelsadd_channelsAddChannelsAddChannelsadd_channels (算子名称)
名称
add_channelsadd_channelsAddChannelsAddChannelsadd_channels — 给区域添加灰度值。
参数签名
def add_channels(区域: HObject, image: HObject) -> HObject
描述
该算子 add_channelsadd_channelsAddChannelsAddChannelsAddChannelsadd_channels creates an array of images
GrayRegionsGrayRegionsGrayRegionsGrayRegionsgrayRegionsgray_regions with an element for every input region in
区域区域区域区域区域区域. 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.
运行信息
- Supports objects on compute devices.
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在元组级别自动并行化。
参数表
区域区域区域区域区域区域 (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
可能的前置算子
thresholdthresholdThresholdThresholdThresholdthreshold,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle,
draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region
可能的后置算子
thresholdthresholdThresholdThresholdThresholdthreshold,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
get_domainget_domainGetDomainGetDomainGetDomainget_domain
可替代算子
change_domainchange_domainChangeDomainChangeDomainChangeDomainchange_domain,
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain
参考其它
full_domainfull_domainFullDomainFullDomainFullDomainfull_domain,
get_domainget_domainGetDomainGetDomainGetDomainget_domain,
intersectionintersectionIntersectionIntersectionIntersectionintersection
模块
Foundation