Ask Your Question

Khalaf90's profile - activity

2020-04-11 19:35:21 -0500 answered a question Cannot run ros_qt_gui_pkg using upstart package

for GUI node you need to adjust the service generate by robot_upstart and add : set Environment=DISPLAY=:0 I wrote my e

2019-10-22 10:38:54 -0500 received badge  Supporter (source)
2019-10-15 18:42:33 -0500 marked best answer display a 16-bit grayscale images from a thermal camera in OpenCV

I would like to display a 16-bit grayscale images from a thermal camera in OpenCV. I tried different images' encoding but what I get is either totally black or totally white picture. my code looks like this:

void imageCallback(const sensor_msgs::ImageConstPtr& img)
{
             cv_bridge::CvImagePtr cv_ptr;
             cv_ptr = cv_bridge::toCvCopy(img);
             cv::imshow("16-bit Mono", cv_ptr->image);
             cv::waitKey(1);
}
2019-10-15 17:26:54 -0500 edited answer display a 16-bit grayscale images from a thermal camera in OpenCV

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

2019-10-15 17:26:54 -0500 received badge  Editor (source)
2019-10-15 17:26:02 -0500 received badge  Famous Question (source)
2019-10-11 20:15:34 -0500 answered a question display a 16-bit grayscale images from a thermal camera in OpenCV

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

2019-10-11 20:12:49 -0500 edited question display a 16-bit grayscale images from a thermal camera in OpenCV

display a 16-bit grayscale images from a thermal camera in OpenCV I would like to display a 16-bit grayscale images from

2019-10-11 20:08:47 -0500 answered a question Rosbag C++ API compress rosbag

/* Desc: Node Allows to programmatically use rosbag_record : start a record --> initialize some o

2019-05-09 06:53:08 -0500 received badge  Enthusiast
2019-04-18 12:36:22 -0500 received badge  Notable Question (source)
2019-04-15 11:15:45 -0500 received badge  Popular Question (source)
2019-04-15 03:44:35 -0500 asked a question display a 16-bit grayscale images from a thermal camera in OpenCV

display a 16-bit grayscale images from a thermal camera in OpenCV Hi Guys, I am struggling to display a 16-bit grayscale