Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

qt creator convert

$
0
0
hi, i record with rosbag a viedeo. I want to viaualize the video in a gui, with a qt creator, but rosbag records only in the Format Mono_8, buti need a rgb format to play the video. How can i decode the video? I try with this: QImage temp(&( qnode.getThermalImage().data[0]), 320, 240, QImage::Format_Mono); QImage image; image = temp; image = temp.convertToFormat(QImage::Format_RGB32); ui.lbl_video->setPixmap(QPixmap::fromImage(image)); ui.lbl_video->update();

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>