-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpointcloudimage.h
More file actions
37 lines (28 loc) · 959 Bytes
/
pointcloudimage.h
File metadata and controls
37 lines (28 loc) · 959 Bytes
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
#ifndef POINTCLOUDIMAGE_H
#define POINTCLOUDIMAGE_H
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include "utilities.h"
class PointCloudImage
{
public:
PointCloudImage(int imageW,int imageH, bool color);
~PointCloudImage(void);
bool setPoint(int i_w, int j_h, cv::Point3f point, cv::Vec3f colorBGR);
bool setPoint(int i_w, int j_h, cv::Point3f point);
bool getPoint(int i_w, int j_h, cv::Point3f &pointOut);
bool getPoint(int i_w, int j_h, cv::Point3f &pointOut, cv::Vec3f &colorOut);
bool addPoint(int i_w, int j_h, cv::Point3f point, cv::Vec3f color);
bool addPoint(int i_w, int j_h, cv::Point3f point);
void exportNumOfPointsPerPixelImg(char path[]);
void exportXYZ(char *path,bool exportOffPixels=true, bool colorFlag=true);
int getWidth();
int getHeight();
private:
int w;
int h;
cv::Mat points;
cv::Mat numOfPointsForPixel;
cv::Mat color;
};
#endif // POINTCLOUDIMAGE_H