hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolay (Operator)

Name

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolay — Ausführen der Hit-or-Miss-Operation für Regionen (Golay).

Warnung

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolay ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt.

Signatur

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)

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

HRegion HRegion::HitOrMissGolay(const wchar_t* GolayElement, Hlong Rotation) const   (Nur Windows)

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

HRegion HRegion.HitOrMissGolay(string golayElement, int rotation)

Beschreibung

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolay berechnet die Hit-or-Miss-Transformation der Eingaberegionen (abgestützt auf das Golay-Alphabet). Dazu wird zunächst eine Erosion der Regionen mit dem durch GolayElementGolayElementGolayElementGolayElementgolayElement ausgewählten strukturierenden Element des Golay-Alphabets durchgeführt. Im zweiten Schritt folgt eine Erosion der Komplemente der Regionen mit der Hintergrund-Maske des strukturierenden Elements. Aus den beiden Zwischenergebnissen wird die Schnittmenge gebildet. Für die strukturierenden Elemente gibt es folgende Wahlmöglichkeiten:

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

Die Rotationsnummer (RotationRotationRotationRotationrotation) gibt dabei an, welche Rotation des gewählten Elements verwendet werden soll. Die Hit-or-Miss-Transformation wählt genau die Punkte aus, deren Umgebung die Bedingungen des gewählten Golay-Elements erfüllt.

Achtung

Es ist zu beachten, dass nicht bei jedem Golayelement alle Rotationen möglich sind.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Regionen, die verarbeitet werden sollen.

RegionHitMissRegionHitMissRegionHitMissRegionHitMissregionHitMiss (output_object)  region(-array) objectHRegionHRegionHobject *

Das Ergebnis der Hit-or-Miss-Operation.

GolayElementGolayElementGolayElementGolayElementgolayElement (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Strukturierendes Element aus dem Golay-Alphabet.

Defaultwert: 'h' "h" "h" "h" "h"

Werteliste: 'c'"c""c""c""c", 'd'"d""d""d""d", 'e'"e""e""e""e", 'f'"f""f""f""f", 'f2'"f2""f2""f2""f2", 'h'"h""h""h""h", 'i'"i""i""i""i", 'k'"k""k""k""k", 'l'"l""l""l""l", 'm'"m""m""m""m"

RotationRotationRotationRotationrotation (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Rotation des Golay-Elements. Je nach Element sind nicht alle Rotationen zulässig.

Defaultwert: 0

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

Komplexität

Sei F die Fläche einer Eingaberegion, dann ist die Laufzeitkomplexität für ein Objekt:

Ergebnis

Bei korrekter Parametrisierung liefert die Funktion hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolay den Wert 2 (H_MSG_TRUE). Das Funktionsverhalten für die beiden Fälle leere und keine Eingaberegion lässt sich wie folgt kontrollieren:

Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionConnectionConnection, union1union1Union1Union1Union1, watershedswatershedsWatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNorm

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeSelectShapeSelectShape, area_centerarea_centerAreaCenterAreaCenterAreaCenter, connectionconnectionConnectionConnectionConnection

Alternativen

hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqHitOrMissSeq, hit_or_misshit_or_missHitOrMissHitOrMissHitOrMiss

Siehe auch

erosion_golayerosion_golayErosionGolayErosionGolayErosionGolay, dilation_golaydilation_golayDilationGolayDilationGolayDilationGolay, opening_golayopening_golayOpeningGolayOpeningGolayOpeningGolay, closing_golayclosing_golayClosingGolayClosingGolayClosingGolay, thinning_golaythinning_golayThinningGolayThinningGolayThinningGolay, thickening_golaythickening_golayThickeningGolayThickeningGolayThickeningGolay, golay_elementsgolay_elementsGolayElementsGolayElementsGolayElements

Modul

Foundation