camAlgo/camCalib/lineDetection_steger.h
2025-08-16 15:25:29 +08:00

11 lines
352 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include<opencv2\opencv.hpp>
// 从点的整数坐标计算亚像素
void computePointSubpix(
cv::Mat& inputImg, //uchar型单通道输入图像灰度图像
std::vector<cv::Point>& pos, //峰值像素的整数坐标。
int gaussWin, //使用steger算法时指定的窗口宽度。此宽度需要与激光线的宽度基本吻合
std::vector<cv::Point2f>& posSubpix //计算出的亚像素坐标
);