HALCON Reference Manual 10.0.2
Table of Contents / Morphology / Region ClassesClassesClasses | | | Operators

erosion_seqerosion_seqerosion_seqErosionSeqErosionSeq (Operator)

Name

erosion_seqerosion_seqerosion_seqErosionSeqErosionSeq — Erode a region sequentially.

Signature

erosion_seq(Region : RegionErosion : GolayElement, Iterations : )

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

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

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

HRegion HRegion::ErosionSeq(const HTuple& GolayElement, const HTuple& Iterations) const

HRegionArray HRegionArray::ErosionSeq(const HTuple& GolayElement, const HTuple& Iterations) const

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

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

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

HRegion HRegion.ErosionSeq(string golayElement, int iterations)

Description

erosion_seqerosion_seqerosion_seqErosionSeqErosionSeq computes the sequential erosion of the input region RegionRegionRegionRegionregion with the selected structuring element GolayElementGolayElementGolayElementGolayElementgolayElement from the Golay alphabet. This is done by executing the operator erosion_golayerosion_golayerosion_golayErosionGolayErosionGolay with all rotations of the structuring element IterationsIterationsIterationsIterationsiterations times. The following structuring elements can be selected:

'l', 'd', 'c', 'f', 'h', 'k'.

Only the “foreground elements” (even rotation numbers) are used. The elements 'i' and 'e' result in unchanged output regions. The elements 'l', 'm' and 'f2' are identical for the foreground. The Golay elements, together with all possible rotations, are described with the operator golay_elementsgolay_elementsgolay_elementsGolayElementsGolayElements.

Parallelization

Parameters

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHRegionXHobject

Regions to be eroded.

RegionErosionRegionErosionRegionErosionRegionErosionregionErosion (output_object)  region(-array) objectHRegionHRegionHRegionXHobject *

Eroded regions.

GolayElementGolayElementGolayElementGolayElementgolayElement (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Structuring element from the Golay alphabet.

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

List of values: 'l'"l""l""l""l", 'd'"d""d""d""d", 'c'"c""c""c""c", 'f'"f""f""f""f", 'h'"h""h""h""h", 'k'"k""k""k""k"

IterationsIterationsIterationsIterationsiterations (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (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 (lin)

Minimum increment: 1

Recommended increment: 1

Complexity

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

       O(Iterations * 20 * sqrt(F)) .

Result

erosion_seqerosion_seqerosion_seqErosionSeqErosionSeq 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

thresholdthresholdthresholdThresholdThreshold, regiongrowingregiongrowingregiongrowingRegiongrowingRegiongrowing, watershedswatershedswatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normclass_ndim_normClassNdimNormClassNdimNorm

Possible Successors

connectionconnectionconnectionConnectionConnection, reduce_domainreduce_domainreduce_domainReduceDomainReduceDomain, select_shapeselect_shapeselect_shapeSelectShapeSelectShape, area_centerarea_centerarea_centerAreaCenterAreaCenter

Alternatives

erosion_golayerosion_golayerosion_golayErosionGolayErosionGolay, erosion1erosion1erosion1Erosion1Erosion1, erosion2erosion2erosion2Erosion2Erosion2

See also

dilation_seqdilation_seqdilation_seqDilationSeqDilationSeq, hit_or_miss_seqhit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeq, thinning_seqthinning_seqthinning_seqThinningSeqThinningSeq

Module

Foundation


Table of Contents / Morphology / Region ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH