Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Accessories
  3. Image Sensors
  4. Extract Depth From Depth Image

Extract Depth From Depth Image

Scheduled Pinned Locked Moved Image Sensors
5 Posts 3 Posters 1.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.
  • A Offline
    A Offline
    amiranda
    wrote on last edited by
    #1

    I have a pmd tof sensor and I am able to see its imagery using voxl-portal or rosrun image_view but how can I extract the depth of the points in mm? Is there an easy way to do that while I do some testing or do I have to write something up to subscribe and print the various points out?

    Is there a handy logging tool of somesort that could give me an array of depth points?

    Thanks

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi,

      We have a feature in the works for our voxl-logger project that would allow it to log tof data to a file. In the meantime, you can use voxl-inspect-points to look at a subsample of the points, or copy and modify the source to process the data however you'd like.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amiranda
        wrote on last edited by amiranda
        #3

        Thanks @Alex-Gardner ,

        If I enter voxl-inspect-points tof_pc -n then is the z axis supposed to be depth in mm? Is there a scale that is supposed to be applied to get between float and distance?

        Also is something like the following the expected output? It just says Float XYZ.
        timestamp(ms)| # points | # bytes | Format
        8104565 | 38528 | 462336 | Float XYZ
        8104628 | 38528 | 462336 | Float XYZ
        8104696 | 38528 | 462336 | Float XYZ
        8104758 | 38528 | 462336 | Float XYZ

        I can start going through the source, I just want to make sure I understand everything so I can get the correct depth in distance extracted.

        Thanks for your help.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Hey @amiranda,

          For the tof points, each axis is measured in meters, no scaling is needed.

          1 Reply Last reply
          1
          • A Offline
            A Offline
            amiranda
            wrote on last edited by
            #5

            Okay, in the meantime, I ended up creating a subscriber for the tof_pc and I managed to extract the x,y and z points. Im assuming that the z point that I extracted from the voxl_mpa_to_ros is the same as the one used in voxl-inspect-points, so that z axis is also reported in meters correct?

            Thanks for you help so far.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            ModalAI
            Categories Recent Tags ModalAI.com Docs
            © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups