Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8366801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:00:15+00:00 2026-06-09T13:00:15+00:00

I am looking for way to (as quick as possible) get the corresponding depth

  • 0

I am looking for way to (as quick as possible) get the corresponding depth to a color pixel from the Kinect camera.

I have found the MapDepthFrameToColorFrame function. But that only gives me the color at a certain depth position, I want the opposite.

The reason I want this is that I will be able to click on a position at the RGB image and get the position to that pixel.

Is there a way to do this faster than looping through all results from MapDepthFrameToColorFrame?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:00:17+00:00Added an answer on June 9, 2026 at 1:00 pm

    The problem here is that not every color pixel will have a depth assigned to it because of the way the cameras and IR emitter are positioned. If you’re facing the Kinect and holding up your left hand in front of your chest, there’s a section of your chest that won’t have depth data because your hand blocks the IR emitter. Since the IR camera is closer to the RGB camera, you generally won’t have the same problem going from depth to RGB; if the Kinect can see the IR, it can see the RGB.

    To answer your question: I’m not aware of any way to do this because the RGB index doesn’t give you enough information to calculate the depth index. Have you tried using the MapDepthFrameToColorFrame and looping like you mentioned? Unless you’re clicking like a maniac (or a computer), I’d be willing to bet that the application will be able to handle this just fine. I wouldn’t spend time trying to optimize this until you’re sure it’s causing a problem.

    If you want to, you could try cutting down on the size of the loop by checking a subset of the color coordinates returned by the function. Get the coordinates of the RGB pixel (x, y), then check the depth coordinates somewhere close to (x,y). Perhaps (x-20, y-20) to (x+20, y+20). If that fails to find it, you can check the rest of the array. Test this out a bit and you can probably find a good range to check around the requested pixel that you’ll get a hit the majority of the time, without a lot of looping.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a quick way to get an http response code from a
I'm looking for a quick way to log some data - I seem to
Maybe a browser plugin? Just looking for a dirty, quick way to test some
I am looking for a quick but not-so-dirty way to do snapshots of a
I'm looking a way to enable IP logging with log4net in ASP.NET. I found
I am looking for a quick way of enabling data entry to a well
I am looking for a quick way to grab some data off of one
I am looking for a quick way of figuring out what part of a
I am looking for a quick way to share code snippets between developers. Visual
I'm looking for an easy and quick way to print out the results of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.