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

hit_or_miss_seqhit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeq (Operator)

Name

hit_or_miss_seqhit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeq — Hit-or-miss operation for regions using the Golay alphabet (sequential).

Signature

hit_or_miss_seq(Region : RegionHitMiss : GolayElement : )

Herror hit_or_miss_seq(const Hobject Region, Hobject* RegionHitMiss, const char* GolayElement)

Herror T_hit_or_miss_seq(const Hobject Region, Hobject* RegionHitMiss, const Htuple GolayElement)

Herror hit_or_miss_seq(Hobject Region, Hobject* RegionHitMiss, const HTuple& GolayElement)

HRegion HRegion::HitOrMissSeq(const HTuple& GolayElement) const

HRegionArray HRegionArray::HitOrMissSeq(const HTuple& GolayElement) const

void HOperatorSetX.HitOrMissSeq(
[in] IHUntypedObjectX* Region, [out] IHUntypedObjectX*RegionHitMiss, [in] VARIANT GolayElement)

IHRegionX* HRegionX.HitOrMissSeq([in] BSTR GolayElement)

static void HOperatorSet.HitOrMissSeq(HObject region, out HObject regionHitMiss, HTuple golayElement)

HRegion HRegion.HitOrMissSeq(string golayElement)

Description

hit_or_miss_golayhit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolay performs the hit-or-miss-transformation for the input regions RegionRegionRegionRegionregion using all rotations of a structuring element from the Golay alphabet. The result of the operator is the union of all intermediate results of the respective rotations. The following structuring elements are available:

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

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

RegionHitMissRegionHitMissRegionHitMissRegionHitMissregionHitMiss (output_object)  region(-array) objectHRegionHRegionHRegionXHobject *

Result of the hit-or-miss operation.

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", 'm'"m""m""m""m", 'd'"d""d""d""d", 'c'"c""c""c""c", 'e'"e""e""e""e", 'i'"i""i""i""i", 'f'"f""f""f""f", 'f2'"f2""f2""f2""f2", 'h'"h""h""h""h", 'k'"k""k""k""k"

Complexity

Let F be the area of an input region, and R be the number of rotations. Then the runtime complexity for one region is:

      O(R * 6 * sqrt(F)) .

Result

hit_or_miss_seqhit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeq 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, connectionconnectionconnectionConnectionConnection, union1union1union1Union1Union1, watershedswatershedswatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normclass_ndim_normClassNdimNormClassNdimNorm

Possible Successors

reduce_domainreduce_domainreduce_domainReduceDomainReduceDomain, select_shapeselect_shapeselect_shapeSelectShapeSelectShape, area_centerarea_centerarea_centerAreaCenterAreaCenter, connectionconnectionconnectionConnectionConnection

Alternatives

hit_or_miss_golayhit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolay, hit_or_misshit_or_misshit_or_missHitOrMissHitOrMiss

See also

thinning_seqthinning_seqthinning_seqThinningSeqThinningSeq, thickening_seqthickening_seqthickening_seqThickeningSeqThickeningSeq

Module

Foundation


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