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. Is it possible to display 'float64' .tif images in PyQt5 window?
Qt 6.11 is out! See what's new in the release blog

Is it possible to display 'float64' .tif images in PyQt5 window?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 785 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.
  • J Offline
    J Offline
    john_hobbyist
    wrote on last edited by
    #1

    Is it possible to display 'float64' .tif images in PyQt5 window?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Yes, but you have to convert the image to RGB32 first.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • J Offline
        J Offline
        john_hobbyist
        wrote on last edited by john_hobbyist
        #3

        Probably I need to use OpenCV? Or I miss something here?

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @john_hobbyist said in Is it possible to display 'float64' .tif images in PyQt5 window?:

          Probably I need to use OpenCV?

          You can also do it by your own. Don't understand the question...

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • J Offline
            J Offline
            john_hobbyist
            wrote on last edited by
            #5

            The problem is that the only accepted format in PyQt is "uint8", correct me if I am wrong. And if I use openCV it does not keep georeferencing (coordinates in other words). I am trying to figure out how to use this solution: https://stackoverflow.com/questions/61912083/convert-float-image-array-to-int-in-pil-via-image-fromarray . How would you approach it, by saying to do it on my own??

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

              Hi,

              Do you mean a GeoTIFF image ?

              If so see this article that talks about various possible ways to handle these.

              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
              1
              • J Offline
                J Offline
                john_hobbyist
                wrote on last edited by john_hobbyist
                #7

                Yes .tif gathered from UAVs depicting land...with georeferencing...

                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