19 lines
357 B
C++
19 lines
357 B
C++
#ifndef IMAGEPACKET_H
|
|
#define IMAGEPACKET_H
|
|
#include <opencv2/core/mat.hpp>
|
|
|
|
#define PACKET_SIZE 768
|
|
|
|
class ImagePacket {
|
|
public:
|
|
ImagePacket(const cv::Mat *image, int begin);
|
|
ImagePacket(const uchar *image, int begin);
|
|
int apply(const cv::Mat *image) const;
|
|
|
|
private:
|
|
int begin;
|
|
uchar slice[PACKET_SIZE];
|
|
};
|
|
|
|
#endif //IMAGEPACKET_H
|