-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfsvision.h
More file actions
41 lines (32 loc) · 1.22 KB
/
fsvision.h
File metadata and controls
41 lines (32 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef FSVISION_H
#define FSVISION_H
#include "staticHeaders.h"
class FSLaser;
class FSVision
{
public:
FSVision();
static FSPoint convertCvPointToFSPoint(CvPoint cvPoint);
static CvPoint convertFSPointToCvPoint(FSPoint fsPoint);
static cv::Mat subLaser(cv::Mat &laserOff, cv::Mat &laserOn, FSFloat threshold);
static cv::Mat subLaser2(cv::Mat &laserOff, cv::Mat &laserOn);
static cv::Mat drawHelperLinesToFrame(cv::Mat &frame);
static cv::Mat drawLaserLineToFrame(cv::Mat &frame);
static cv::Mat diffImage(cv::Mat &laserOff, cv::Mat &laserOn);
static void putPointsFromFrameToCloud(
FSLaser* laser,
cv::Mat &laserOff,
cv::Mat &laserOn,
int dpiVertical,
FSFloat lowerLimit);
static void putPointsFromFrameToCloud2(
FSLaser* laser,
cv::Mat &laserOff,
cv::Mat &laserOn,
int dpiVertical,
FSFloat lowerLimit);
static FSPoint detectLaserLine(cv::Mat &laserOff, cv::Mat &laserOn, unsigned int threshold);
static cv::Mat histogram(cv::Mat &img);
static FSPoint TestFunction( FSPoint laserPos, int x, int y, int dpiVertical, FSPoint alphaDelta ); //step between vertical points
};
#endif // FSVISION_H