Commit 751171af authored by Digifarm's avatar Digifarm
Browse files

output is BGR (we may need to check this...)

parent 55a30819
......@@ -40,7 +40,7 @@
std::string ros_image_format( uint32_t const pixel_type )
{
if( pixel_type & J_GVSP_PIX_MONO ) { return sensor_msgs::image_encodings::MONO8; }
if( pixel_type & J_GVSP_PIX_RGB ) { return sensor_msgs::image_encodings::RGB8; }
if( pixel_type & J_GVSP_PIX_RGB ) { return sensor_msgs::image_encodings::BGR8; }
throw std::runtime_error( "neither mono or rgb bits set in jai image" );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment