I have a std::vector<char> data which represents data from a network byte-stream as well as different offsets as integer values. I know that the vector holds the data for a 4x4 trajectory matrix (32bit float), a RGB image (Unity TextureFormat.RGB24) and a gray scale image (Unity TextureFormat.RFloat).
What I need to do is the extract the following from this data:
Eigen::Matrix4d trajectorystd::vector<uint8_t> rgb_image_datastd::vector<uint8_t> gray_image_data
I want to do TSDF Volume integration with RGBD images using Open3D.
I have the same setup as python script already working (simply using numpy arrays for the data buffers), but need to rewrite it in C++ and I'm quite unsure how to do these conversions best.