#ifndef MYIMAGE_H #define MYIMAGE_H #include class MyImage { public: MyImage(); MyImage(Pylon::CGrabResultPtr ptr); int width(); int height(); int size(); int64_t index(); void* data(); bool setFrame(Pylon::CGrabResultPtr ptr); private: uint32_t img_width = 0; uint32_t img_height = 0; int64_t img_index = 0; time_t timestamp; static const int max_width = 2048; static const int max_height = 1536; char buffer[max_width * max_height]; }; #endif // MYIMAGE_H