ros / common_msgs

Commonly used messages in ROS. Includes messages for actions (actionlib_msgs), diagnostics (diagnostic_msgs), geometric primitives (geometry_msgs), robot navigation (nav_msgs), and common sensors (sensor_msgs), such as laser range finders, cameras, point clouds.
http://wiki.ros.org/common_msgs
177 stars 191 forks source link

YUV420 support #166

Open luca-della-vedova opened 4 years ago

luca-della-vedova commented 4 years ago

This PR adds support for YUV420 (or I420) images.

I420 is the most common YUV format and is adopted by most Image Sensor Processor (ISP) chips, specifically this was implemented to work with gstreamer based v4l plugins

I420 consists in 12 bits per pixel, which is implemented in OpenCV as a cv::Mat with one 8 bit channel with 1.5x the number of rows of the actual image.