fittingfittingFittingFittingfitting (算子名称)

名称

fittingfittingFittingFittingfitting — Perform a closing after an opening with multiple structuring elements.

Warning

fittingfittingFittingFittingFittingfitting is obsolete and is only provided for reasons of backward compatibility.

参数签名

fitting(区域, StructElements : RegionFitted : : )

Herror fitting(const Hobject 区域, const Hobject StructElements, Hobject* RegionFitted)

Herror T_fitting(const Hobject 区域, const Hobject StructElements, Hobject* RegionFitted)

void Fitting(const HObject& 区域, const HObject& StructElements, HObject* RegionFitted)

HRegion HRegion::Fitting(const HRegion& StructElements) const

static void HOperatorSet.Fitting(HObject 区域, HObject structElements, out HObject regionFitted)

HRegion HRegion.Fitting(HRegion structElements)

def fitting(区域: HObject, struct_elements: HObject) -> HObject

描述

fittingfittingFittingFittingFittingfitting performs an openingopeningOpeningOpeningOpeningopening and a closingclosingClosingClosingClosingclosing successively on the input regions. The eight structuring elements normally used for this operation can be generated with the operator gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements. However, other user-defined structuring elements can also be used. Let R be the input region(s) and let denote the structuring elements. Furthermore, let P be the result of the opening and Q be the final result. Then the operator can be formalized as follows: Regions larger than the structuring elements are preserved, while small gaps are closed.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regions to be processed.

StructElementsStructElementsStructElementsStructElementsstructElementsstruct_elements (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Structuring elements.

RegionFittedRegionFittedRegionFittedRegionFittedregionFittedregion_fitted (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Fitted regions.

结果

fittingfittingFittingFittingFittingfitting returns 2 ( H_MSG_TRUE) if all parameters are correct. The behavior in case of empty or no input region can be set via:

Otherwise, an exception is raised.

可能的前置算子

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points

可能的后置算子

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

可替代算子

openingopeningOpeningOpeningOpeningopening, closingclosingClosingClosingClosingclosing, connectionconnectionConnectionConnectionConnectionconnection, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape

模块

Foundation