ClassesClassesClassesClasses | | | | Operators

top_hattop_hatTopHattop_hatTopHatTopHat (Operator)

Name

top_hattop_hatTopHattop_hatTopHatTopHat — Compute the top hat of regions.

Signature

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)

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

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

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

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

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

void HOperatorSetX.TopHat(
[in] IHUntypedObjectX* Region, [in] IHUntypedObjectX* StructElement, [out] IHUntypedObjectX*RegionTopHat)

IHRegionX* HRegionX.TopHat([in] IHRegionX* StructElement)

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

HRegion HRegion.TopHat(HRegion structElement)

Description

top_hattop_hatTopHattop_hatTopHatTopHat computes the openingopeningOpeningopeningOpeningOpening of RegionRegionRegionRegionRegionregion with StructElementStructElementStructElementStructElementStructElementstructElement. The difference between the original region and the result of the opening is called the top hat. In contrast to openingopeningOpeningopeningOpeningOpening, which splits regions under certain circumstances, top_hattop_hatTopHattop_hatTopHatTopHat computes the regions removed by such a splitting.

The position of StructElementStructElementStructElementStructElementStructElementstructElement is meaningless, since an opening operation is invariant with respect to the choice of the reference point.

Structuring elements (StructElementStructElementStructElementStructElementStructElementstructElement) can be generated with operators such as gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle, gen_rectangle1gen_rectangle1GenRectangle1gen_rectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2gen_rectangle2GenRectangle2GenRectangle2, gen_ellipsegen_ellipseGenEllipsegen_ellipseGenEllipseGenEllipse, draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion, gen_region_polygongen_region_polygonGenRegionPolygongen_region_polygonGenRegionPolygonGenRegionPolygon, gen_region_pointsgen_region_pointsGenRegionPointsgen_region_pointsGenRegionPointsGenRegionPoints, etc.

Parallelization

Parameters

RegionRegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Regions to be processed.

StructElementStructElementStructElementStructElementStructElementstructElement (input_object)  region objectHRegionHRegionHRegionHRegionXHobject

Structuring element (position independent).

RegionTopHatRegionTopHatRegionTopHatRegionTopHatRegionTopHatregionTopHat (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Result of the top hat operator.

Result

top_hattop_hatTopHattop_hatTopHatTopHat 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, gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipsegen_ellipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1gen_rectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2gen_rectangle2GenRectangle2GenRectangle2, draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion, gen_region_pointsgen_region_pointsGenRegionPointsgen_region_pointsGenRegionPointsGenRegionPoints, gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilled

Possible Successors

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape, area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter, connectionconnectionConnectionconnectionConnectionConnection

Alternatives

openingopeningOpeningopeningOpeningOpening, differencedifferenceDifferencedifferenceDifferenceDifference

See also

bottom_hatbottom_hatBottomHatbottom_hatBottomHatBottomHat, gray_tophatgray_tophatGrayTophatgray_tophatGrayTophatGrayTophat, openingopeningOpeningopeningOpeningOpening

Module

Foundation


ClassesClassesClassesClasses | | | | Operators