eccentricity — 从椭圆参数导出的形状特征。
eccentricity(Regions : : : Anisometry, Bulkiness, StructureFactor)
算子 eccentricity calculates the three shape features
Anisometry, Bulkiness, and StructureFactor
for the given Regions:
where Ra and Rb denote the ellipse radii (see elliptic_axis)
and A denotes the area of the region (see area_center).
In the documentation of this chapter (Regions / Features), you can find an image illustrating regions which vary in their anisometry, bulkiness and structure factor.
If more than one region is passed the results are stored in tuples, the index of a value in the tuple corresponding to the index of a region in the input.
In case of empty region all parameters have the value 0.0 if no other
behavior was set (see set_system).
It should be noted that, like for all region-moments-based
operators, the region's pixels are regarded as mathematical,
infinitely small points that are represented by the center of the
pixels (see the documentation of elliptic_axis). This can
lead to non-empty regions that have Rb = 0. In
these cases, the output features that require a division by
Rb are set to 0. In particular, regions that
contain a single point or regions whose points lie exactly on a
straight line (e.g., one pixel high horizontal regions or one pixel
wide vertical regions) have an anisometry of 0.
Regions (输入对象) region(-array) → object
待检查的区域。
Anisometry (输出控制) real(-array) → (real)
Shape feature (in case of a circle = 1.0).
Assertion:
Anisometry >= 1.0
Bulkiness (输出控制) real(-array) → (real)
Calculated shape feature.
StructureFactor (输出控制) real(-array) → (real)
Calculated shape feature.
若 F 为区域面积,则平均运行时间复杂生为 O(√F)。
算子 eccentricity 在输入不为空时返回值 2 ( H_MSG_TRUE )。当输入为空(无可用输入区域)时,可设置行为通过算子 set_system('no_object_result',<Result>)。空区域(区域是空集)的情况下的可设置行为通过
set_system('empty_region_result',<Result>)。如有必要,则抛出异常。
threshold,
regiongrowing,
connection
elliptic_axis,
moments_region_2nd,
select_shape,
area_center
基础