hough_circle_transhough_circle_transHoughCircleTransHoughCircleTranshough_circle_trans(算子)

名称

hough_circle_transhough_circle_transHoughCircleTransHoughCircleTranshough_circle_trans — 返回具有给定半径的圆的霍夫变换。

签名

hough_circle_trans(Region : HoughImage : Radius : )

Herror hough_circle_trans(const Hobject Region, Hobject* HoughImage, const Hlong Radius)

Herror T_hough_circle_trans(const Hobject Region, Hobject* HoughImage, const Htuple Radius)

void HoughCircleTrans(const HObject& Region, HObject* HoughImage, const HTuple& Radius)

HImage HRegion::HoughCircleTrans(const HTuple& Radius) const

HImage HRegion::HoughCircleTrans(Hlong Radius) const

static void HOperatorSet.HoughCircleTrans(HObject region, out HObject houghImage, HTuple radius)

HImage HRegion.HoughCircleTrans(HTuple radius)

HImage HRegion.HoughCircleTrans(int radius)

def hough_circle_trans(region: HObject, radius: MaybeSequence[int]) -> HObject

描述

算子 hough_circle_transhough_circle_transHoughCircleTransHoughCircleTransHoughCircleTranshough_circle_trans calculates the Hough transform for circles with a certain RadiusRadiusRadiusRadiusradiusradius in the regions passed by RegionRegionRegionRegionregionregion. Hereby the centers of all possible circles in the parameter space (the Hough or accumulator space respectively) will be accumulated for each point in the image space. Circle hypotheses supported by many points in the input region thereby generate a maximum in the area showing the circle's center in the output image (HoughImageHoughImageHoughImageHoughImagehoughImagehough_image). The circles' centers in the image space can be deduced from the coordinates of these maximums by subtracting the RadiusRadiusRadiusRadiusradiusradius. If more than one radius is transmitted, all Hough images will be shifted according to the maximal radius.

执行信息

参数

RegionRegionRegionRegionregionregion (输入对象)  region objectHRegionHObjectHRegionHobject

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

HoughImageHoughImageHoughImageHoughImagehoughImagehough_image (输出对象)  image(-array) objectHImageHObjectHImageHobject * (int2)

Hough transform for circles with a given radius.

元素数量: HoughImage == Radius

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

值范围: 3 ≤ Radius Radius Radius Radius radius radius (lin)

最小增量: 1

建议增量: 1

结果

算子 hough_circle_transhough_circle_transHoughCircleTransHoughCircleTransHoughCircleTranshough_circle_trans 在输入不为空时返回值 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>)。如有必要,则抛出异常。

模块

基础