I need to call
rs2_project_color_pixel_to_depth_pixel from Python with synthetic data. The data are generated in Python and do not come directly from the RealSense.
The first argument is the depth map of type
BufData. How do I construct a
BufData object in Python from a bytestream or an array?
BufData does not seem to have a Python constructor, and I have not seen a way to get it from another type.
BufData does support the buffer protocol, though it still might need a constructor. Another way would be to construct a frame, which has a method to provide