top_hattop_hatTopHatTopHattop_hat (Operator)

Name

top_hattop_hatTopHatTopHattop_hat — 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)

def top_hat(region: HObject, struct_element: HObject) -> HObject

Beschreibung

top_hattop_hatTopHatTopHatTopHattop_hat berechnet das openingopeningOpeningOpeningOpeningopening von RegionRegionRegionRegionregionregion mit StructElementStructElementStructElementStructElementstructElementstruct_element. Von der Eingaberegion wird dieses Zwischenergebnis abgezogen. Im Gegensatz zu openingopeningOpeningOpeningOpeningopening, das Einzelregionen bei entsprechender Voraussetzung in mehrere Regionen auftrennt, bestimmt top_hattop_hatTopHatTopHatTopHattop_hat die Region, welche bei dieser Trennung entfernt wird.

Die Position von StructElementStructElementStructElementStructElementstructElementstruct_element ist ohne Bedeutung, da openingopeningOpeningOpeningOpeningopening translationsinvariant bzgl. StructElementStructElementStructElementStructElementstructElementstruct_element ist.

Das strukturierende Element (StructElementStructElementStructElementStructElementstructElementstruct_element) kann mit Operatoren wie gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse, draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region, gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points, etc. erzeugt werden.

Ausführungsinformationen

Parameter

RegionRegionRegionRegionregionregion (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regionen, die verarbeitet werden sollen.

StructElementStructElementStructElementStructElementstructElementstruct_element (input_object)  region objectHRegionHObjectHRegionHobject

Strukturierendes Element (lageinvariant).

RegionTopHatRegionTopHatRegionTopHatRegionTopHatregionTopHatregion_top_hat (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Ergebnis des Top-Hat-Operators.

Ergebnis

Bei korrekter Parametrisierung liefert die Funktion top_hattop_hatTopHatTopHatTopHattop_hat 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, gen_circlegen_circleGenCircleGenCircleGenCirclegen_circle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipsegen_ellipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points, gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilledGenRegionPolygonFilledgen_region_polygon_filled

Nachfolger

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

Alternativen

openingopeningOpeningOpeningOpeningopening, differencedifferenceDifferenceDifferenceDifferencedifference

Siehe auch

bottom_hatbottom_hatBottomHatBottomHatBottomHatbottom_hat, gray_tophatgray_tophatGrayTophatGrayTophatGrayTophatgray_tophat, openingopeningOpeningOpeningOpeningopening

Modul

Foundation