- Home /
Question by
waschmaschine · Jun 10, 2017 at 10:42 AM ·
textureimagevideo streamingraw
Updating a texture with raw image data every frame
I am receiving images via ROS in Unity, basically video frames. I confirmed the width and height of the received content and want to visualize what I got, too. Here's a link to the data structure (available to me in C#): http://docs.ros.org/api/sensor_msgs/html/msg/Image.html
I want to receive 3-channel RGB images. I tried using LoadRawTextureData with the actual matrix data in the sensor_msgs.Image.data member, which produces an error that I can only call this function from the main thread. Any advice?
Comment