select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdselect_shape_std (算子)
名称
select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdselect_shape_std — 选择给定形状的区域。
签名
描述
算子 select_shape_stdselect_shape_stdSelectShapeStdSelectShapeStdSelectShapeStdselect_shape_std compares the shape of the
given regions with default shapes. If the region has a similar shape
it is adopted into the output. Possible values for ShapeShapeShapeShapeshapeshape
are:
- 'max_area'
The largest region is selected.
- 'rectangle1'
The surrounding rectangle parallel to the coordinate axes is
determined via the operator smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1。If the
area difference in percent
is larger than PercentPercentPercentPercentpercentpercent the region is adopted.
- 'rectangle2'
The smallest surrounding rectangle with any orientation is
determined via the operator smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2smallest_rectangle2。If the
area difference in percent
is larger than PercentPercentPercentPercentpercentpercent the region is adopted. Note that as a more
robust alternative the operator select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape with FeatureFeatureFeatureFeaturefeaturefeature
set to 'rectangularity'"rectangularity""rectangularity""rectangularity""rectangularity""rectangularity" can be used instead.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
RegionsRegionsRegionsRegionsregionsregions (输入对象) region(-array) → objectHRegionHObjectHRegionHobject
Input regions to be selected.
SelectedRegionsSelectedRegionsSelectedRegionsSelectedRegionsselectedRegionsselected_regions (输出对象) region(-array) → objectHRegionHObjectHRegionHobject *
Regions with desired shape.
ShapeShapeShapeShapeshapeshape (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Shape features to be checked.
默认值:
'max_area'
"max_area"
"max_area"
"max_area"
"max_area"
"max_area"
值列表:
'max_area'"max_area""max_area""max_area""max_area""max_area", 'rectangle1'"rectangle1""rectangle1""rectangle1""rectangle1""rectangle1", 'rectangle2'"rectangle2""rectangle2""rectangle2""rectangle2""rectangle2"
PercentPercentPercentPercentpercentpercent (输入控制) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Similarity measure.
默认值:
70.0
建议值:
10.0, 30.0, 50.0, 60.0, 70.0, 80.0, 90.0, 95.0, 100.0
值范围:
0.0
≤
Percent
Percent
Percent
Percent
percent
percent
≤
100.0 (lin)
最小增量:
0.1
建议增量:
10.0
可能的前趋
thresholdthresholdThresholdThresholdThresholdthreshold,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
connectionconnectionConnectionConnectionConnectionconnection,
smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1,
smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2smallest_rectangle2
替代
intersectionintersectionIntersectionIntersectionIntersectionintersection,
complementcomplementComplementComplementComplementcomplement,
area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center,
select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape
另见
smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1,
smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2smallest_rectangle2,
rectangularityrectangularityRectangularityRectangularityRectangularityrectangularity
模块
基础