top_hattop_hatTopHatTopHat (Operator)

Name

top_hattop_hatTopHatTopHat — Ermitteln von Ausbuchtungen von Regionen.

Signatur

top_hat(Region, StructElement : RegionTopHat : : )

Herror top_hat(const Hobject Region, const Hobject StructElement, Hobject* RegionTopHat)

Herror T_top_hat(const Hobject Region, const Hobject StructElement, Hobject* RegionTopHat)

void TopHat(const HObject& Region, const HObject& StructElement, HObject* RegionTopHat)

HRegion HRegion::TopHat(const HRegion& StructElement) const

static void HOperatorSet.TopHat(HObject region, HObject structElement, out HObject regionTopHat)

HRegion HRegion.TopHat(HRegion structElement)

Beschreibung

top_hattop_hatTopHatTopHatTopHat berechnet das openingopeningOpeningOpeningOpening von RegionRegionRegionRegionregion mit StructElementStructElementStructElementStructElementstructElement. Von der Eingaberegion wird dieses Zwischenergebnis abgezogen. Im Gegensatz zu openingopeningOpeningOpeningOpening, das Einzelregionen bei entsprechender Voraussetzung in mehrere Regionen auftrennt, bestimmt top_hattop_hatTopHatTopHatTopHat die Region, welche bei dieser Trennung entfernt wird.

Die Position von StructElementStructElementStructElementStructElementstructElement ist ohne Bedeutung, da openingopeningOpeningOpeningOpening translationsinvariant bzgl. StructElementStructElementStructElementStructElementstructElement ist.

Das strukturierende Element (StructElementStructElementStructElementStructElementstructElement) kann mit Operatoren wie gen_circlegen_circleGenCircleGenCircleGenCircle, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygon, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPoints, etc. erzeugt werden.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Regionen, die verarbeitet werden sollen.

StructElementStructElementStructElementStructElementstructElement (input_object)  region objectHRegionHRegionHobject

Strukturierendes Element (lageinvariant).

RegionTopHatRegionTopHatRegionTopHatRegionTopHatregionTopHat (output_object)  region(-array) objectHRegionHRegionHobject *

Ergebnis des Top-Hat-Operators.

Ergebnis

Bei korrekter Parametrisierung liefert die Funktion top_hattop_hatTopHatTopHatTopHat 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, gen_circlegen_circleGenCircleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPoints, gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilledGenRegionPolygonFilled

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeSelectShapeSelectShape, area_centerarea_centerAreaCenterAreaCenterAreaCenter, connectionconnectionConnectionConnectionConnection

Alternativen

openingopeningOpeningOpeningOpening, differencedifferenceDifferenceDifferenceDifference

Siehe auch

bottom_hatbottom_hatBottomHatBottomHatBottomHat, gray_tophatgray_tophatGrayTophatGrayTophatGrayTophat, openingopeningOpeningOpeningOpening

Modul

Foundation