how to separate channels of a topic of the type sensor_msgs/Image
Hi guys,
I'm new to ROS and struggling with understanding it so I would really appreciate your help. I have a node which publishes /ladybug_image with type sensor_msgs/Image but I need to extract the green channel of this topic. I looked at the ros documentation about sensor_msgs/Image. To me it sounds the uint8[] data contains the image data but I don't get how can I refer to each channel explicitly. Could you please help me how can I do that?