change_domainchange_domainChangeDomainChangeDomainchange_domain (Operator)

名称

change_domainchange_domainChangeDomainChangeDomainchange_domain — 更改图像的定义域。

签名

change_domain(Image, NewDomain : ImageNew : : )

Herror change_domain(const Hobject Image, const Hobject NewDomain, Hobject* ImageNew)

Herror T_change_domain(const Hobject Image, const Hobject NewDomain, Hobject* ImageNew)

void ChangeDomain(const HObject& Image, const HObject& NewDomain, HObject* ImageNew)

HImage HImage::ChangeDomain(const HRegion& NewDomain) const

static void HOperatorSet.ChangeDomain(HObject image, HObject newDomain, out HObject imageNew)

HImage HImage.ChangeDomain(HRegion newDomain)

def change_domain(image: HObject, new_domain: HObject) -> HObject

描述

The operator change_domainchange_domainChangeDomainChangeDomainChangeDomainchange_domain uses the indicated region as the new definition domain. Unlike the operator reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain it does not form the intersection of the previous definition domain, i.e., the size of the matrix is not changed. This implies in particular, that the region must not exceed the image matrix, otherwise using such inconsistent iconic objects during subsequent operations will likely lead to errors or system crashes.

注意

Due to running time the transferred region is not checked for consistency (i.e., whether it fits with the image matrix). Incorrect regions lead to system hang-ups during subsequent operations.

执行信息

参数

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

Input image.

NewDomainNewDomainNewDomainNewDomainnewDomainnew_domain (input_object)  region objectHRegionHObjectHRegionHobject

New definition domain.

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

Image with new definition domain.

可能的前置算子

get_domainget_domainGetDomainGetDomainGetDomainget_domain

替代算子

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain

另见

full_domainfull_domainFullDomainFullDomainFullDomainfull_domain, get_domainget_domainGetDomainGetDomainGetDomainget_domain, intersectionintersectionIntersectionIntersectionIntersectionintersection

模块

Foundation