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

in case that someone face the same problem in the future, the solution is to convert from 16 bit to 8 bit per pixel using:

  cv::normalize(img2,img2,0.,255.,cv::NORM_MINMAX,CV_8U);

in case that someone face the same problem in the future, the solution is to convert from 16 bit to 8 bit per pixel using:

 cv::normalize(img2,img2,0.,255.,cv::NORM_MINMAX,CV_8U);
cv::normalize(img,img,0.,255.,cv::NORM_MINMAX,CV_8U);