fittingfittingFittingFittingfitting (Operator)

Name

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

Warning

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

Signature

fitting(Region, StructElements : RegionFitted : : )

Herror fitting(const Hobject Region, const Hobject StructElements, Hobject* RegionFitted)

Herror T_fitting(const Hobject Region, const Hobject StructElements, Hobject* RegionFitted)

void Fitting(const HObject& Region, const HObject& StructElements, HObject* RegionFitted)

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

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

HRegion HRegion.Fitting(HRegion structElements)

def fitting(region: HObject, struct_elements: HObject) -> HObject

Description

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.

Execution Information

Parameters

RegionRegionRegionRegionregionregion (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.

Result

fittingfittingFittingFittingFittingfitting returns 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.

Possible Predecessors

gen_struct_elementsgen_struct_elementsGenStructElementsGenStructElementsGenStructElementsgen_struct_elements, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points

Possible Successors

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

Alternatives

openingopeningOpeningOpeningOpeningopening, closingclosingClosingClosingClosingclosing, connectionconnectionConnectionConnectionConnectionconnection, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape

Module

Foundation