You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
424 B
C
29 lines
424 B
C
|
4 years ago
|
#ifndef LP_VALVE_DETECTOR_H
|
||
|
|
#define LP_VALVE_DETECTOR_H
|
||
|
|
|
||
|
|
|
||
|
|
#include "Luffy.h"
|
||
|
|
#include "lpbengine.h"
|
||
|
|
using namespace luffy_base;
|
||
|
|
|
||
|
|
struct InputParam
|
||
|
|
{
|
||
|
|
LP_DETECTOR_ROI_DATA roi;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct OutputParam
|
||
|
|
{
|
||
|
|
Point2f ptCenter;
|
||
|
|
Mat centerRoi;
|
||
|
|
};
|
||
|
|
|
||
|
|
class CaliCenter
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CaliCenter();
|
||
|
|
~CaliCenter();
|
||
|
|
|
||
|
|
bool detect(Mat & imgSrc, InputParam ¶mIn, OutputParam ¶mOut, Mat &imgDst = Mat());
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif //LP_VALVE_DETECTOR_H
|