hough_circleshough_circlesHoughCirclesHoughCircleshough_circles(算子)

名称

hough_circleshough_circlesHoughCirclesHoughCircleshough_circles — 使用霍夫变换检测特定半径的圆心。

签名

hough_circles(RegionIn : RegionOut : Radius, Percent, Mode : )

Herror hough_circles(const Hobject RegionIn, Hobject* RegionOut, const Hlong Radius, const Hlong Percent, const Hlong Mode)

Herror T_hough_circles(const Hobject RegionIn, Hobject* RegionOut, const Htuple Radius, const Htuple Percent, const Htuple Mode)

void HoughCircles(const HObject& RegionIn, HObject* RegionOut, const HTuple& Radius, const HTuple& Percent, const HTuple& Mode)

HRegion HRegion::HoughCircles(const HTuple& Radius, const HTuple& Percent, const HTuple& Mode) const

HRegion HRegion::HoughCircles(Hlong Radius, Hlong Percent, Hlong Mode) const

static void HOperatorSet.HoughCircles(HObject regionIn, out HObject regionOut, HTuple radius, HTuple percent, HTuple mode)

HRegion HRegion.HoughCircles(HTuple radius, HTuple percent, HTuple mode)

HRegion HRegion.HoughCircles(int radius, int percent, int mode)

def hough_circles(region_in: HObject, radius: MaybeSequence[int], percent: MaybeSequence[int], mode: MaybeSequence[int]) -> HObject

描述

hough_circleshough_circlesHoughCirclesHoughCirclesHoughCircleshough_circles detects the centers of circles in regions with the help of the Hough transform for circles with a specific radius.

执行信息

参数

RegionInRegionInRegionInRegionInregionInregion_in (输入对象)  region objectHRegionHObjectHRegionHobject

Binary edge image in which the circles are to be detected.

RegionOutRegionOutRegionOutRegionOutregionOutregion_out (输出对象)  region(-array) objectHRegionHObjectHRegionHobject *

Centers of those circles which are included in the edge image by PercentPercentPercentPercentpercentpercent percent.

元素数量: RegionOut == Radius * Percent * Mode

RadiusRadiusRadiusRadiusradiusradius (输入控制)  integer(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Radius of the circle to be searched in the image.

元素数量: 1 <= Radius <= 500

默认值: 12

值范围: 2 ≤ Radius Radius Radius Radius radius radius ≤ 500 (lin)

最小增量: 1

建议增量: 1

PercentPercentPercentPercentpercentpercent (输入控制)  integer(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Indicates the percentage (approximately) of the (ideal) circle which must be present in the edge image RegionInRegionInRegionInRegionInregionInregion_in

元素数量: 1 <= Percent <= 100

默认值: 60

值范围: 10 ≤ Percent Percent Percent Percent percent percent ≤ 100 (lin)

最小增量: 1

建议增量: 5

ModeModeModeModemodemode (输入控制)  integer(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

The mode defines the position of the circle in question:
0 - the radius is equivalent to the outer border of the set pixels.
1 - the radius is equivalent to the centers of the circle lines' pixels.
2 - both 0 and 1 (a little more fuzzy, but more reliable in contrast to circles set slightly differently, necessitates 50 % more processing capacity compared to 0 or 1 alone).

元素数量: 1 <= Mode <= 3

值列表: 0, 1, 2

结果

算子 hough_circleshough_circlesHoughCirclesHoughCirclesHoughCircleshough_circles 在输入不为空时返回值 2 ( H_MSG_TRUE )。当输入为空(无可用输入区域)时,可设置行为通过算子 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 behavior in case of empty region is set via 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>)。如有必要,则抛出异常。

模块

基础