ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
![]() | 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);
![]() | 2 | No.2 Revision |
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);