algoLib/sourceCode/bagThreadPositioning_Export.h
jerryzeng 360460320e bagThreadPositioning v1.0.0
初始提交,检测出线尾和线缝
2026-01-20 07:12:01 +08:00

29 lines
807 B
C++
Raw 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 "SG_algo_Export.h"
#include <vector>
#define _OUTPUT_DEBUG_DATA 1
typedef struct
{
SVzNL3DPoint threadPos; //线头位置
SVzNL3DPoint operatePos; //下刀位置
double rotateAngle; //水平旋转角
}SSX_bagThreadInfo; //线头信息
//读版本号
SG_APISHARED_EXPORT const char* wd_bagThreadPositioningVersion(void);
//线头位置检测定位
SG_APISHARED_EXPORT void wd_bagThreadPositioning(
std::vector< std::vector<SVzNL3DPosition>>& scanLines,
bool isHorizonScan, //true:激光线平行槽道false:激光线垂直槽道
const SSG_outlierFilterParam filterParam, //噪点过滤参数
const SSG_cornerParam cornerPara, //V型特征参数
const SSG_raisedFeatureParam raisedFeaturePara,//线尾凸起参数
const SSG_treeGrowParam growParam, //特征生长参数
std::vector<SSX_bagThreadInfo>& bagThreadInfo,
int* errCode);