Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Developing a GUI using OpenCV and Qt C++- High-Resolution images
QtWS25 Last Chance

Developing a GUI using OpenCV and Qt C++- High-Resolution images

Scheduled Pinned Locked Moved General and Desktop
opencvimagehigh dpi
6 Posts 3 Posters 4.2k Views
  • 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
    David_Dev
    wrote on last edited by
    #1

    Hi,

    I have been chosen by my Computer Science laboratory in order to develop a Graphical User Interface (GUI) which main goal is to allow the user to open High Resolution images (TIFF format) and manipulate them (zoom in, zoom out, draw rectangles,create and edit annotations...).

    I would like to build this GUI using Qt coupled with OpenCV. Nevertheless, I have some doubts about working with OpenCV for this project.

    Therefore, my questions are:

    . Does Qt allow you to handle High-Resolution TIFF images ?
    . Does OpenCV allow you to handle High-Resolution TIFF images ?
    . Is it easy to convert a OpenCV TIFF image into a Qt TIFF image ?
    
    benlauB 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you define High Resolution TIFF ?

      But basically the answer would be yes, unless you have very special TIFF files.

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Can you define High Resolution TIFF ?

        But basically the answer would be yes, unless you have very special TIFF files.

        D Offline
        D Offline
        David_Dev
        wrote on last edited by
        #3

        @SGaist Thank you very much for your answer !
        I am going to manipulate 3024p x 4032p TIFF images. These are my "High-Resolution" TIFF images.

        The qt documentation (doc.qt.io/qt-5/qtimageformats-index.html) tells us Qt uses a plugin in order to manipulate Tiff images. Does it work ? What does "bundled third-party code" mean ? Do I need to install an additional library for Qt ?

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

          Yes it works, otherwise it wouldn't be there ;)

          No, Qt provides some of the third party libraries it uses like sqlite or libtiff. You can find them in the 3rdparty folder in the sources.

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

          D 1 Reply Last reply
          0
          • SGaistS SGaist

            Yes it works, otherwise it wouldn't be there ;)

            No, Qt provides some of the third party libraries it uses like sqlite or libtiff. You can find them in the 3rdparty folder in the sources.

            D Offline
            D Offline
            David_Dev
            wrote on last edited by
            #5

            @SGaist Thank you very much ! I'm going to try it !

            1 Reply Last reply
            0
            • D David_Dev

              Hi,

              I have been chosen by my Computer Science laboratory in order to develop a Graphical User Interface (GUI) which main goal is to allow the user to open High Resolution images (TIFF format) and manipulate them (zoom in, zoom out, draw rectangles,create and edit annotations...).

              I would like to build this GUI using Qt coupled with OpenCV. Nevertheless, I have some doubts about working with OpenCV for this project.

              Therefore, my questions are:

              . Does Qt allow you to handle High-Resolution TIFF images ?
              . Does OpenCV allow you to handle High-Resolution TIFF images ?
              . Is it easy to convert a OpenCV TIFF image into a Qt TIFF image ?
              
              benlauB Offline
              benlauB Offline
              benlau
              Qt Champions 2016
              wrote on last edited by
              #6

              @David_Dev said:

              . Is it easy to convert a OpenCV TIFF image into a Qt TIFF image ?
              

              OpenCV use cv::Mat to store Image data , but Qt use QImage / QPixmap. You need to make a conversion function.

              Just Google it and you will find example code:

              Qt and openCV: Convert between cv::mat and Qimage correctly

              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