36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
#pragma once
|
||
|
||
#include "SG_algo_Export.h"
|
||
#include <vector>
|
||
|
||
#define _OUTPUT_DEBUG_DATA 1
|
||
|
||
typedef struct
|
||
{
|
||
SVzNL3DPoint threadPos; //线头位置
|
||
SVzNL3DPoint operatePos; //下刀位置
|
||
double rotateAngle; //水平旋转角
|
||
}SSX_bagThreadInfo; //线头信息
|
||
|
||
typedef struct
|
||
{
|
||
bool isHorizonScan;
|
||
bool scanFromThreadHead;
|
||
double stitchWidth; //针脚最小宽度,用于过滤虚假的针脚
|
||
double operateDist; //下刀位置距针脚距离
|
||
}SSX_ScanInfo;
|
||
|
||
//读版本号
|
||
SG_APISHARED_EXPORT const char* wd_bagThreadPositioningVersion(void);
|
||
|
||
//线头位置检测定位
|
||
SG_APISHARED_EXPORT void wd_bagThreadPositioning(
|
||
std::vector< std::vector<SVzNL3DPosition>>& scanLines,
|
||
const SSX_ScanInfo scanInfo, //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);
|