ClassesClassesClassesClasses | | | | Operators

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayhit_or_miss_golayHitOrMissGolayHitOrMissGolay (Operator)

Name

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayhit_or_miss_golayHitOrMissGolayHitOrMissGolay — Hit-or-miss operation for regions using the Golay alphabet.

Signature

hit_or_miss_golay(Region : RegionHitMiss : GolayElement, Rotation : )

Herror hit_or_miss_golay(const Hobject Region, Hobject* RegionHitMiss, const char* GolayElement, const Hlong Rotation)

Herror T_hit_or_miss_golay(const Hobject Region, Hobject* RegionHitMiss, const Htuple GolayElement, const Htuple Rotation)

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

HRegion HRegion::HitOrMissGolay(const HTuple& GolayElement, const HTuple& Rotation) const

HRegionArray HRegionArray::HitOrMissGolay(const HTuple& GolayElement, const HTuple& Rotation) const

void HitOrMissGolay(const HObject& Region, HObject* RegionHitMiss, const HTuple& GolayElement, const HTuple& Rotation)

HRegion HRegion::HitOrMissGolay(const HString& GolayElement, Hlong Rotation) const

HRegion HRegion::HitOrMissGolay(const char* GolayElement, Hlong Rotation) const

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

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

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

HRegion HRegion.HitOrMissGolay(string golayElement, int rotation)

Description

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayhit_or_miss_golayHitOrMissGolayHitOrMissGolay performs the hit-or-miss-transformation for the input regions RegionRegionRegionRegionRegionregion (using structuring elements from the Golay alphabet). First, an erosion with the foreground of the structuring element GolayElementGolayElementGolayElementGolayElementGolayElementgolayElement is done on the input region RegionRegionRegionRegionRegionregion. Then an erosion with the background of the structuring element GolayElementGolayElementGolayElementGolayElementGolayElementgolayElement is performed on the complement of the input region. The intersection of the two resulting regions is the result RegionHitMissRegionHitMissRegionHitMissRegionHitMissRegionHitMissregionHitMiss of hit_or_miss_golayhit_or_miss_golayHitOrMissGolayhit_or_miss_golayHitOrMissGolayHitOrMissGolay. 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. The hit-or-miss-transformation selects precisely the points for which the conditions given by the selected Golay element are fulfilled.

Attention

Not all values of RotationRotationRotationRotationRotationrotation are valid for any Golay element.

Parallelization

Parameters

RegionRegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Regions to be processed.

RegionHitMissRegionHitMissRegionHitMissRegionHitMissRegionHitMissregionHitMiss (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Result of the hit-or-miss operation.

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"

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:

       O(6 * sqrt(F)) .

Result

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayhit_or_miss_golayHitOrMissGolayHitOrMissGolay 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, connectionconnectionConnectionconnectionConnectionConnection, union1union1Union1union1Union1Union1, watershedswatershedsWatershedswatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normClassNdimNormclass_ndim_normClassNdimNormClassNdimNorm

Possible Successors

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape, area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter, connectionconnectionConnectionconnectionConnectionConnection

Alternatives

hit_or_miss_seqhit_or_miss_seqHitOrMissSeqhit_or_miss_seqHitOrMissSeqHitOrMissSeq, hit_or_misshit_or_missHitOrMisshit_or_missHitOrMissHitOrMiss

See also

erosion_golayerosion_golayErosionGolayerosion_golayErosionGolayErosionGolay, dilation_golaydilation_golayDilationGolaydilation_golayDilationGolayDilationGolay, opening_golayopening_golayOpeningGolayopening_golayOpeningGolayOpeningGolay, closing_golayclosing_golayClosingGolayclosing_golayClosingGolayClosingGolay, thinning_golaythinning_golayThinningGolaythinning_golayThinningGolayThinningGolay, thickening_golaythickening_golayThickeningGolaythickening_golayThickeningGolayThickeningGolay, golay_elementsgolay_elementsGolayElementsgolay_elementsGolayElementsGolayElements

Module

Foundation


ClassesClassesClassesClasses | | | | Operators