camAlgo/camAlgoSW/sourceCode/camAlgoSW_Export.h

39 lines
1000 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 "algoGlobals.h"
#include <vector>
#if defined(SG_API_LIBRARY)
# define SG_APISHARED_EXPORT __declspec(dllexport)
#else
# define SG_APISHARED_EXPORT __declspec(dllimport)
#endif
typedef struct
{
uint16_t WinRdx;//窗口在图像内的起始坐标
uint16_t y; //y坐标
uint16_t Rid; //region的ID
uint8_t Flag; //bit0是overlap标志。bit1是反光信号标志
uint8_t PeakRltvRdx; //peak在窗口内的的相对坐标低4位是起始坐标高4位是结束坐标
uint8_t data[RGN_DATA_WIN_SIZE];
//double offset;
}Luma_rgnData;
#define _ALGO_MODULE_DEBUG 1
SG_APISHARED_EXPORT void camAlgoSW(
int inFrmH,
int inFrmW,
unsigned char* inData,
ProcObj& frontendPara,
FramePara& inFramePara,
CamPara& calibPara,
LineCalibK* lineCalibKx,
LineCalibK* lineCalibKy,
#if _ALGO_MODULE_DEBUG
std::vector<Luma_rgnData>& frontendData,
std::vector<RgnPix>& centeringPnt_debug,
std::vector<RgnSubPix>& subpixPnt_debug,
std::vector<RgnSubPixCalib>& calibSubpixPnt_debug,
#endif
std::vector< Pnt3D>& resul3DPnts);