2025-08-16 15:25:29 +08:00
|
|
|
|
#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
|
|
|
|
|
|
|
2025-08-24 20:48:51 +08:00
|
|
|
|
typedef struct
|
|
|
|
|
|
{
|
|
|
|
|
|
uint16_t WinRdx;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>
|
|
|
|
|
|
uint16_t y; //y<><79><EFBFBD><EFBFBD>
|
|
|
|
|
|
uint16_t Rid; //region<6F><6E>ID
|
|
|
|
|
|
uint8_t Flag; //bit0<74><30>overlap<61><70>־<EFBFBD><D6BE>bit1<74>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>źű<C5BA>־
|
|
|
|
|
|
uint8_t PeakRltvRdx; //peak<61>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ڵĵ<DAB5><C4B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>꣬<EFBFBD><EAA3AC>4λ<34><CEBB><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>꣬<EFBFBD><EAA3AC>4λ<34>ǽ<EFBFBD><C7BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
uint8_t data[RGN_DATA_WIN_SIZE];
|
|
|
|
|
|
//double offset;
|
|
|
|
|
|
}Luma_rgnData;
|
|
|
|
|
|
|
|
|
|
|
|
#define _ALGO_MODULE_DEBUG 1
|
2025-08-16 15:25:29 +08:00
|
|
|
|
SG_APISHARED_EXPORT void camAlgoSW(
|
|
|
|
|
|
int inFrmH,
|
|
|
|
|
|
int inFrmW,
|
|
|
|
|
|
unsigned char* inData,
|
|
|
|
|
|
ProcObj& frontendPara,
|
|
|
|
|
|
FramePara& inFramePara,
|
|
|
|
|
|
CamPara& calibPara,
|
|
|
|
|
|
LineCalibK* lineCalibKx,
|
|
|
|
|
|
LineCalibK* lineCalibKy,
|
2025-08-24 20:48:51 +08:00
|
|
|
|
#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
|
2025-08-16 15:25:29 +08:00
|
|
|
|
std::vector< Pnt3D>& resul3DPnts);
|