gpt4 book ai didi

c# - HoughLinesP参数!单元?

转载 作者:太空宇宙 更新时间:2023-11-03 22:01:30 28 4
gpt4 key购买 nike

我正在使用 OpenCV 2.4.2

这是 OpenCV 文档中的引文

C++: void HoughLinesP(InputArray image, OutputArray lines, double rho, double theta, int threshold, double minLineLength=0, double maxLineGap=0 )

Parameters:

image – 8-bit, single-channel binary source image. The image may be modified by the function.

lines – Output vector of lines. Each line is represented by a4-element vector , where and are the ending points of eachdetected line segment.

rho – Distance resolution of the accumulator in pixels.

theta – Angle resolution of the accumulator in radians.

threshold – Accumulator threshold parameter. Only those lines arereturned that get enough votes().

minLineLength – Minimum line length. Line segments shorter than thatare rejected.

maxLineGap – Maximum allowed gap between points on the same line tolink them

我的问题是

minLineLengthma​​xLineGap 是以像素为单位测量的吗?或者什么?

最佳答案

翻阅旧的 Intel OpenCV 手册,您可以看到它将 LineLength 描述为 Pixels http://opencv.jp/opencv-1.0.0_org/docs/opencvman_old.pdf

It retrieves no more than linesNumber line segments; each of those must be not shorter than lineLength pixels.

像素在这里似乎是最合乎逻辑的。 Rho,累加器的距离分辨率定义为以像素为单位。

此处的示例显示使用的值为 30:
http://www.scribd.com/doc/77374092/155/cv-HoughLinesP

关于c# - HoughLinesP参数!单元?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14022385/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com