ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you're a beginner, just keep in mind that every third data value represents the color Red, every third+1 data value represents Green and every third+2 data value represents the color Blue. While imagining image_raw.data array as real image, you should think that first three data values denote the intensity of Red, Green and Blue of the first pixel, next three data values denote intensity of Red, Green and Blue of the second pixel, and so on. You can cross check this by making a simple node and running it with image_view, or you can see what I did over here