opening_rectangle1opening_rectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1 (算子名称)

名称

opening_rectangle1opening_rectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1 — Open a region with a rectangular structuring element.

参数签名

opening_rectangle1(区域 : RegionOpening : Width, Height : )

Herror opening_rectangle1(const Hobject 区域, Hobject* RegionOpening, const Hlong Width, const Hlong Height)

Herror T_opening_rectangle1(const Hobject 区域, Hobject* RegionOpening, const Htuple Width, const Htuple Height)

void OpeningRectangle1(const HObject& 区域, HObject* RegionOpening, const HTuple& Width, const HTuple& Height)

HRegion HRegion::OpeningRectangle1(Hlong Width, Hlong Height) const

static void HOperatorSet.OpeningRectangle1(HObject 区域, out HObject regionOpening, HTuple width, HTuple height)

HRegion HRegion.OpeningRectangle1(int width, int height)

def opening_rectangle1(区域: HObject, width: int, height: int) -> HObject

描述

opening_rectangle1opening_rectangle1OpeningRectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1 behaves as openingopeningOpeningOpeningOpeningopening with a rectangular structuring element on the input region 区域区域区域区域区域区域. The size of the rectangular structuring element is determined by the parameters WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight. As is the case for all openingopeningOpeningOpeningOpeningopening variants, larger structures are preserved, while small regions like lines or points are eliminated.

Similar to erosion_rectangle1erosion_rectangle1ErosionRectangle1ErosionRectangle1ErosionRectangle1erosion_rectangle1 and dilation_rectangle1dilation_rectangle1DilationRectangle1DilationRectangle1DilationRectangle1dilation_rectangle1 opening_rectangle1opening_rectangle1OpeningRectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1 is a very fast operation.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regions to be opened.

RegionOpeningRegionOpeningRegionOpeningRegionOpeningregionOpeningregion_opening (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Opened regions.

WidthWidthWidthWidthwidthwidth (input_control)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the structuring rectangle.

Default: 10

Suggested values: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200

Value range: 1 ≤ Width Width Width Width width width ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

HeightHeightHeightHeightheightheight (input_control)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the structuring rectangle.

Default: 10

Suggested values: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200

Value range: 1 ≤ Height Height Height Height height height ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Complexity

Let F1 be the area of an input region and H be the height of the rectangle. Then the runtime complexity for one region is:

结果

opening_rectangle1opening_rectangle1OpeningRectangle1OpeningRectangle1OpeningRectangle1opening_rectangle1 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.

可能的前置算子

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, watershedswatershedsWatershedsWatershedsWatershedswatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm

可能的后置算子

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

可替代算子

openingopeningOpeningOpeningOpeningopening, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1, dilation_rectangle1dilation_rectangle1DilationRectangle1DilationRectangle1DilationRectangle1dilation_rectangle1, erosion_rectangle1erosion_rectangle1ErosionRectangle1ErosionRectangle1ErosionRectangle1erosion_rectangle1

模块

Foundation