diameter_regiondiameter_regionDiameterRegionDiameterRegiondiameter_region (算子名称)
名称
diameter_regiondiameter_regionDiameterRegionDiameterRegiondiameter_region — Maximal distance between two boundary points of a region.
参数签名
Herror diameter_region(const Hobject 区域, Hlong* Row1, Hlong* Column1, Hlong* Row2, Hlong* Column2, double* Diameter)
Herror T_diameter_region(const Hobject 区域, Htuple* Row1, Htuple* Column1, Htuple* Row2, Htuple* Column2, Htuple* Diameter)
void DiameterRegion(const HObject& 区域, HTuple* Row1, HTuple* Column1, HTuple* Row2, HTuple* Column2, HTuple* Diameter)
void HRegion::DiameterRegion(HTuple* Row1, HTuple* Column1, HTuple* Row2, HTuple* Column2, HTuple* Diameter) const
void HRegion::DiameterRegion(Hlong* Row1, Hlong* Column1, Hlong* Row2, Hlong* Column2, double* Diameter) const
static void HOperatorSet.DiameterRegion(HObject 区域, out HTuple row1, out HTuple column1, out HTuple row2, out HTuple column2, out HTuple diameter)
void HRegion.DiameterRegion(out HTuple row1, out HTuple column1, out HTuple row2, out HTuple column2, out HTuple diameter)
void HRegion.DiameterRegion(out int row1, out int column1, out int row2, out int column2, out double diameter)
def diameter_region(区域: HObject) -> Tuple[Sequence[int], Sequence[int], Sequence[int], Sequence[int], Sequence[float]]
def diameter_region_s(区域: HObject) -> Tuple[int, int, int, int, float]
描述
该算子 diameter_regiondiameter_regionDiameterRegionDiameterRegionDiameterRegiondiameter_region calculates the
maximal distance between two boundary points of
a region. The coordinates of these two extremes
and the distance between them will be returned.
In the documentation of this chapter (Regions / Features), you can
find an image illustrating regions which vary in their diameter.
注意
If the region is empty, the results of Row1Row1Row1Row1row1row_1, Column1Column1Column1Column1column1column_1,
Row2Row2Row2Row2row2row_2 and Column2Column2Column2Column2column2column_2 (all of them = 0) may lead to
confusion.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在元组级别自动并行化。
参数表
区域区域区域区域区域区域 (input_object) region(-array) → objectHRegionHObjectHRegionHobject
Regions to be examined.
Row1Row1Row1Row1row1row_1 (output_control) line.begin.y(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of the first extreme point.
Column1Column1Column1Column1column1column_1 (output_control) line.begin.x(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of the first extreme point.
Row2Row2Row2Row2row2row_2 (output_control) line.end.y(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of the second extreme point.
Column2Column2Column2Column2column2column_2 (output_control) line.end.x(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of the second extreme point.
DiameterDiameterDiameterDiameterdiameterdiameter (output_control) number(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Distance of the two extreme points.
Complexity
If F is the area of a region, the runtime
complexity amounts to O(sqrt(F)) on average.
结果
该算子 diameter_regiondiameter_regionDiameterRegionDiameterRegionDiameterRegiondiameter_region 返回值 2 (
H_MSG_TRUE)
, if the input
is not empty. The reaction to empty input (no input regions are
available) may be determined with the help of 该算子
set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>). The reaction
concerning an empty region (region is the empty set) will be determined
by 该算子 set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>).
If necessary an exception is raised.
可能的前置算子
thresholdthresholdThresholdThresholdThresholdthreshold,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
connectionconnectionConnectionConnectionConnectionconnection,
runlength_featuresrunlength_featuresRunlengthFeaturesRunlengthFeaturesRunlengthFeaturesrunlength_features
可能的后置算子
disp_linedisp_lineDispLineDispLineDispLinedisp_line
可替代算子
smallest_rectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2SmallestRectangle2smallest_rectangle2
模块
Foundation