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. ROI of a scaled image to ROI of actual high resolution image
Forum Update on Monday, May 27th 2025

ROI of a scaled image to ROI of actual high resolution image

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

    I am looking for one more example. i e i am having a scaled image of an actual high resoultion image and that showing it in the application first.And i select a portion of the scaled image as region of interset via a rectangle draw and then i collect the region interest coorinates. Now i want to load that region of interest area from the actual high resolution image to the another widget of the application.In my knowledge i can use Qimagereader and cliprect. So my question is how can i map the coordinates from the scaled image to actual high resolution image and how to show it. ?

    Thanks in advance.

    jsulmJ 1 Reply Last reply
    0
    • B BinuJanardhanan

      I am looking for one more example. i e i am having a scaled image of an actual high resoultion image and that showing it in the application first.And i select a portion of the scaled image as region of interset via a rectangle draw and then i collect the region interest coorinates. Now i want to load that region of interest area from the actual high resolution image to the another widget of the application.In my knowledge i can use Qimagereader and cliprect. So my question is how can i map the coordinates from the scaled image to actual high resolution image and how to show it. ?

      Thanks in advance.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @BinuJanardhanan I would say you have to apply the scale factor to the coordinates from the scaled image to get coordinates in the original image. So, if the scale factor for x/y was 1.5 you have to multiply the coordinates by 1.5.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      1
      • jsulmJ jsulm

        @BinuJanardhanan I would say you have to apply the scale factor to the coordinates from the scaled image to get coordinates in the original image. So, if the scale factor for x/y was 1.5 you have to multiply the coordinates by 1.5.

        B Offline
        B Offline
        BinuJanardhanan
        wrote on last edited by
        #3

        @jsulm ok thank you for the answer.

        Let me check.

        once again thanks

        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