opening_golayopening_golayOpeningGolayOpeningGolayopening_golay (Operator)

Name

opening_golayopening_golayOpeningGolayOpeningGolayopening_golay — Auftrennen von Lücken mit einem Golay-Element.

Warnung

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

Signatur

opening_golay(Region : RegionOpening : GolayElement, Rotation : )

Herror opening_golay(const Hobject Region, Hobject* RegionOpening, const char* GolayElement, const Hlong Rotation)

Herror T_opening_golay(const Hobject Region, Hobject* RegionOpening, const Htuple GolayElement, const Htuple Rotation)

void OpeningGolay(const HObject& Region, HObject* RegionOpening, const HTuple& GolayElement, const HTuple& Rotation)

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

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

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

static void HOperatorSet.OpeningGolay(HObject region, out HObject regionOpening, HTuple golayElement, HTuple rotation)

HRegion HRegion.OpeningGolay(string golayElement, int rotation)

def opening_golay(region: HObject, golay_element: str, rotation: int) -> HObject

Beschreibung

opening_golayopening_golayOpeningGolayOpeningGolayOpeningGolayopening_golay ist als Hintereinanderschaltung von Minkowski-Subtraktion und Minkowski-Addition. Dabei wird zuerst die Minkowski-Subtraktion der Eingaberegionen (RegionRegionRegionRegionregionregion) mit dem durch GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element und RotationRotationRotationRotationrotationrotation ausgewählten strukturierenden Element aus dem Golay-Alphabet durchgeführt. Mit dem Ergebnis der Minkowski-Subtraktion und dem um 180 Grad gedrehten strukturierenden Element, wird dann eine Minkowski-Addition durchgeführt.

Für die strukturierenden Elemente gibt es folgende Wahlmöglichkeiten

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

Die Rotationsnummer (RotationRotationRotationRotationrotationrotation) gibt dabei an, welche RotationRotationRotationRotationrotationrotation des gewählten Elements verwendet werden soll. Die Golay-Elemente mit allen möglichen Rotationen sind in der Funktionsbeschreibung von golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements aufgeführt.

Durch opening_golayopening_golayOpeningGolayOpeningGolayOpeningGolayopening_golay werden Regionen, die kleiner sind als das strukturierende Element, entfernt und die Objektränder geglättet.

Achtung

Es ist zu beachten, dass nicht bei jedem Golayelement alle Werte von RotationRotationRotationRotationrotationrotation zulässig sind. Bei einigen Werten für RotationRotationRotationRotationrotationrotation entsteht die identische Abbildung.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregionregion (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regionen, die verarbeitet werden sollen.

RegionOpeningRegionOpeningRegionOpeningRegionOpeningregionOpeningregion_opening (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Das Ergebnis des Opening-Operators.

GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Strukturierendes Element aus dem Golay-Alphabet.

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

Werteliste: '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 HTupleintHTupleHtuple (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 opening_golayopening_golayOpeningGolayOpeningGolayOpeningGolayopening_golay 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

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection, union1union1Union1Union1Union1union1, watershedswatershedsWatershedsWatershedsWatershedswatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

Alternativen

opening_segopening_segOpeningSegOpeningSegOpeningSegopening_seg, openingopeningOpeningOpeningOpeningopening

Siehe auch

erosion_golayerosion_golayErosionGolayErosionGolayErosionGolayerosion_golay, dilation_golaydilation_golayDilationGolayDilationGolayDilationGolaydilation_golay, closing_golayclosing_golayClosingGolayClosingGolayClosingGolayclosing_golay, hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay, thinning_golaythinning_golayThinningGolayThinningGolayThinningGolaythinning_golay, thickening_golaythickening_golayThickeningGolayThickeningGolayThickeningGolaythickening_golay, golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements

Modul

Foundation