29 lines
972 B
C++
29 lines
972 B
C++
#ifndef BELTTEARINGALGO_H
|
|
#define BELTTEARINGALGO_H
|
|
#include "beltTearingDetection_Export.h"
|
|
|
|
using namespace std;
|
|
|
|
class BeltTearingAlgo
|
|
{
|
|
public:
|
|
BeltTearingAlgo();
|
|
void ResetParameter();
|
|
void Training(SVzNL3DLaserLine* lines);
|
|
void Training(std::vector<SVzNL3DLaserLine> lines);
|
|
std::vector<SSG_beltTearingInfo> Predit(SVzNL3DLaserLine* lines, int lineId);
|
|
std::vector<SSG_beltTearingInfo> Predit(std::vector<SVzNL3DLaserLine> lines, int lineIdx);
|
|
|
|
private:
|
|
SSG_beltTearingParam algoParam;
|
|
std::vector<SSG_hLineProInfo> hLineWorkers;
|
|
std::vector<SSG_beltTearingInfo> beltTearings_new;
|
|
std::vector<SSG_beltTearingInfo> beltTearings_growing;
|
|
std::vector<SSG_beltTearingInfo> beltTearings_ended;
|
|
std::vector<SSG_beltTearingInfo> beltTearings_unknown; //未判明,应用无需处理。
|
|
std::vector<SSG_beltTearingInfo> total_tearings;
|
|
int lineIndex = 0;
|
|
};
|
|
|
|
#endif // BELTTEARINGALGO_H
|