Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt creator convertor
Forum Updated to NodeBB v4.3 + New Features

Qt creator convertor

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 911 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dante90
    wrote on last edited by
    #1

    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();
    @

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What is the format of the image ? raw ? png ? jpeg ?

      What output are you excepting ? What are you getting ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dante90
        wrote on last edited by
        #3

        hi

        the format of the image is mono_8 raw, because rosbag records in the format mono_8. I need another format to show the video in my qt gui, because qt cant visualize the format. I want to to convert from mono_8 to a rgb format

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved