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. Calculate the field of view for a camera to draw on the map

Calculate the field of view for a camera to draw on the map

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 875 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
    BrMisha
    wrote on 28 Aug 2021, 23:49 last edited by
    #1

    Hello!
    I have a camera installed on a drone and need to draw a field of view on the map.

    So, i have next data:

    1. Angle of a camera lens and a current zoom.
    2. Coordinate of a camera.
    3. Tilt and pan of a camera.
    4. Altitude (sea level) of a ground.

    Has Qt some components to calculate a FOV in my case?

    Thanks!

    P 1 Reply Last reply 29 Aug 2021, 10:42
    0
    • B BrMisha
      28 Aug 2021, 23:49

      Hello!
      I have a camera installed on a drone and need to draw a field of view on the map.

      So, i have next data:

      1. Angle of a camera lens and a current zoom.
      2. Coordinate of a camera.
      3. Tilt and pan of a camera.
      4. Altitude (sea level) of a ground.

      Has Qt some components to calculate a FOV in my case?

      Thanks!

      P Offline
      P Offline
      Pl45m4
      wrote on 29 Aug 2021, 10:42 last edited by Pl45m4
      #2

      @BrMisha said in Calculate the field of view for a camera to draw on the map:

      Has Qt some components to calculate a FOV in my case?

      It's called math :)

      In Qt 3D you can get the current field of view from your virtual camera, but for a real camera with real data you have to calculate it by yourself.

      There are a lot of guides that show how to achieve this. And you know all parameters you need to make these calculations (camera/lens specs etc.)

      • https://www.scantips.com/lights/fieldofviewmath.html
      • https://www.scantips.com/lights/fieldofview.html

      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      B 1 Reply Last reply 29 Aug 2021, 21:59
      1
      • P Pl45m4
        29 Aug 2021, 10:42

        @BrMisha said in Calculate the field of view for a camera to draw on the map:

        Has Qt some components to calculate a FOV in my case?

        It's called math :)

        In Qt 3D you can get the current field of view from your virtual camera, but for a real camera with real data you have to calculate it by yourself.

        There are a lot of guides that show how to achieve this. And you know all parameters you need to make these calculations (camera/lens specs etc.)

        • https://www.scantips.com/lights/fieldofviewmath.html
        • https://www.scantips.com/lights/fieldofview.html
        B Offline
        B Offline
        BrMisha
        wrote on 29 Aug 2021, 21:59 last edited by
        #3

        @Pl45m4 Thanks for reply. I found many Qt classes with methods "fieldOfView". Those will not help for me?

        P 1 Reply Last reply 30 Aug 2021, 15:14
        0
        • B BrMisha
          29 Aug 2021, 21:59

          @Pl45m4 Thanks for reply. I found many Qt classes with methods "fieldOfView". Those will not help for me?

          P Offline
          P Offline
          Pl45m4
          wrote on 30 Aug 2021, 15:14 last edited by Pl45m4
          #4

          @BrMisha said in Calculate the field of view for a camera to draw on the map:

          I found many Qt classes with methods "fieldOfView". Those will not help for me?

          These are most likely Qt 3D / QML classes for virtual /rendered scenes with a virtual camera to manage the perspective (POV / FOV).

          eg.

          • https://doc.qt.io/qt-5/qml-qtquick3d-perspectivecamera.html#fieldOfView-prop
          • https://doc.qt.io/qt-5/qt3drender-qcamera.html#fieldOfView-prop

          I don't know if one of those classes above would help you at all (unless you want to render your image in some virtual 3D environment).

          I could be wrong, but in my opinion, you dont need any framework or class for this, since it's just plain math / physics.


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0

          2/4

          29 Aug 2021, 10:42

          • Login

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