ClassesClassesClassesClasses | | | | Operators

erosion_golayerosion_golayErosionGolayerosion_golayErosionGolayErosionGolay (Operator)

Name

erosion_golayerosion_golayErosionGolayerosion_golayErosionGolayErosionGolay — Erode a region with an element from the Golay alphabet.

Signature

erosion_golay(Region : RegionErosion : GolayElement, Iterations, Rotation : )

Herror erosion_golay(const Hobject Region, Hobject* RegionErosion, const char* GolayElement, const Hlong Iterations, const Hlong Rotation)

Herror T_erosion_golay(const Hobject Region, Hobject* RegionErosion, const Htuple GolayElement, const Htuple Iterations, const Htuple Rotation)

Herror erosion_golay(Hobject Region, Hobject* RegionErosion, const HTuple& GolayElement, const HTuple& Iterations, const HTuple& Rotation)

HRegion HRegion::ErosionGolay(const HTuple& GolayElement, const HTuple& Iterations, const HTuple& Rotation) const

HRegionArray HRegionArray::ErosionGolay(const HTuple& GolayElement, const HTuple& Iterations, const HTuple& Rotation) const

void ErosionGolay(const HObject& Region, HObject* RegionErosion, const HTuple& GolayElement, const HTuple& Iterations, const HTuple& Rotation)

HRegion HRegion::ErosionGolay(const HString& GolayElement, Hlong Iterations, Hlong Rotation) const

HRegion HRegion::ErosionGolay(const char* GolayElement, Hlong Iterations, Hlong Rotation) const

void HOperatorSetX.ErosionGolay(
[in] IHUntypedObjectX* Region, [out] IHUntypedObjectX*RegionErosion, [in] VARIANT GolayElement, [in] VARIANT Iterations, [in] VARIANT Rotation)

IHRegionX* HRegionX.ErosionGolay(
[in] BSTR GolayElement, [in] Hlong Iterations, [in] Hlong Rotation)

static void HOperatorSet.ErosionGolay(HObject region, out HObject regionErosion, HTuple golayElement, HTuple iterations, HTuple rotation)

HRegion HRegion.ErosionGolay(string golayElement, int iterations, int rotation)

Description

erosion_golayerosion_golayErosionGolayerosion_golayErosionGolayErosionGolay erodes a region with the selected element GolayElementGolayElementGolayElementGolayElementGolayElementgolayElement from the Golay alphabet. The following structuring elements are available:

'l', 'm', 'd', 'c', 'e', 'i', 'f', 'f2', 'h', 'k'.

The rotation number RotationRotationRotationRotationRotationrotation determines which rotation of the element should be used, and whether the foreground (even) or background version (odd) of the selected element should be used. The Golay elements, together with all possible rotations, are described with the operator golay_elementsgolay_elementsGolayElementsgolay_elementsGolayElementsGolayElements. The operator works by shifting the structuring element over the region to be processed (RegionRegionRegionRegionRegionregion). For all positions of the structuring element fully contained in the region, the corresponding reference point (relative to the structuring element) is added to the output region. This means that the intersection of all translations of the structuring element within the region is computed.

The parameter IterationsIterationsIterationsIterationsIterationsiterations determines the number of iterations which are to be performed with the structuring element. The result of iteration n-1 is used as input for iteration n.

Attention

Not all values of RotationRotationRotationRotationRotationrotation are valid for any Golay element. For some of the values of RotationRotationRotationRotationRotationrotation, the resulting regions are identical to the input regions.

Parallelization

Parameters

RegionRegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Regions to be eroded.

RegionErosionRegionErosionRegionErosionRegionErosionRegionErosionregionErosion (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Eroded regions.

GolayElementGolayElementGolayElementGolayElementGolayElementgolayElement (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Structuring element from the Golay alphabet.

Default value: 'h' "h" "h" "h" "h" "h"

List of values: 'c'"c""c""c""c""c", 'd'"d""d""d""d""d", 'e'"e""e""e""e""e", 'f'"f""f""f""f""f", 'f2'"f2""f2""f2""f2""f2", 'h'"h""h""h""h""h", 'i'"i""i""i""i""i", 'k'"k""k""k""k""k", 'l'"l""l""l""l""l", 'm'"m""m""m""m""m"

IterationsIterationsIterationsIterationsIterationsiterations (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Number of iterations.

Default value: 1

Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 20, 30, 40, 50

Typical range of values: 1 ≤ Iterations Iterations Iterations Iterations Iterations iterations (lin)

Minimum increment: 1

Recommended increment: 1

RotationRotationRotationRotationRotationrotation (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Rotation of the Golay element. Depending on the element, not all rotations are valid.

Default value: 0

List of values: 0, 2, 4, 6, 8, 10, 12, 14, 1, 3, 5, 7, 9, 11, 13, 15

Complexity

Let F be the area of an input region. Then the runtime complexity for one region is:

Result

erosion_golayerosion_golayErosionGolayerosion_golayErosionGolayErosionGolay 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.

Possible Predecessors

thresholdthresholdThresholdthresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, watershedswatershedsWatershedswatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normClassNdimNormclass_ndim_normClassNdimNormClassNdimNorm

Possible Successors

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape, area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter, connectionconnectionConnectionconnectionConnectionConnection

Alternatives

erosion_seqerosion_seqErosionSeqerosion_seqErosionSeqErosionSeq, erosion1erosion1Erosion1erosion1Erosion1Erosion1, erosion2erosion2Erosion2erosion2Erosion2Erosion2

See also

dilation_golaydilation_golayDilationGolaydilation_golayDilationGolayDilationGolay, opening_golayopening_golayOpeningGolayopening_golayOpeningGolayOpeningGolay, closing_golayclosing_golayClosingGolayclosing_golayClosingGolayClosingGolay, hit_or_miss_golayhit_or_miss_golayHitOrMissGolayhit_or_miss_golayHitOrMissGolayHitOrMissGolay, thinning_golaythinning_golayThinningGolaythinning_golayThinningGolayThinningGolay, thickening_golaythickening_golayThickeningGolaythickening_golayThickeningGolayThickeningGolay, golay_elementsgolay_elementsGolayElementsgolay_elementsGolayElementsGolayElements

Module

Foundation


ClassesClassesClassesClasses | | | | Operators