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

  • Home
  • SEARCH
  • 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 8903533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:53:36+00:00 2026-06-15T01:53:36+00:00

I am using the Windows Kinect SDK to obtain depth and RGB images from

  • 0

I am using the Windows Kinect SDK to obtain depth and RGB images from the sensor.

Since the depth image and the RGB images do not align, I would like to find a way of converting the coordinates of the RGB image to that of the depth image, since I want to use an image mask on the depth image I have obtained from some processing on the RGB image.

There is already a method for converting depth coordinates to the color space coordinates:

NuiImageGetColorPixelCoordinatesFromDepthPixel

unfortunately, the reverse does not exist. There is only an arcane call in INUICoordinateMapper:

HRESULT MapColorFrameToDepthFrame(
     NUI_IMAGE_RESOLUTION eColorResolution,
     NUI_IMAGE_RESOLUTION eDepthResolution,
     DWORD cDepthPixels,
     NUI_DEPTH_IMAGE_PIXEL *pDepthPixels,
     DWORD cDepthPoints,
     NUI_DEPTH_IMAGE_POINT *pDepthPoints
)

How this method works is not very well documented. Has anyone used it before?

I’m on the verge of performing a manual calibration myself to calculate a transformation matrix, so I would be very happy for a solution.

  • 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-15T01:53:38+00:00Added an answer on June 15, 2026 at 1:53 am

    Thanks to commenter horristic, I got a link to msdn with some useful information (thanks also to T. Chen over at msdn for helping out with the API). Extracted from T. Chen’s post, here’s the code that will perform the mapping from RGB to depth coordinate space:

    INuiCoordinateMapper* pMapper;
    
    mNuiSensor->NuiGetCoordinateMapper(&pMapper);
    
    pMapper->MapColorFrameToDepthFrame(
            NUI_IMAGE_TYPE_COLOR,
            NUI_IMAGE_RESOLUTION_640x480,
            NUI_IMAGE_RESOLUTION_640x480,
            640 * 480, 
            (NUI_DEPTH_IMAGE_PIXEL*)LockedRect.pBits,
            640 * 480, 
            depthPoints);
    

    Note: the sensor needs to be initialized and a depth frame locked for this to work.

    The transformed coordinates can, e.g., be queried as follows:

    /// transform RGB coordinate point to a depth coordinate point 
    cv::Point TransformRGBtoDepthCoords(cv::Point rgb_coords, NUI_DEPTH_IMAGE_POINT *    depthPoints)
    {
        long index = rgb_coords.y * 640 + rgb_coords.x;
        NUI_DEPTH_IMAGE_POINT depthPointAtIndex = depthPoints[index];
        return cv::Point(depthPointAtIndex.x, depthPointAtIndex.y); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am basically trying to take input as RGB Stream from Kinect for Windows
Using Windows So I'm reading from a binary file a list of unsigned int
Using Windows Mobile 6.5 and C# The CharacterCasing property seems to be missing from
I am using Kinect to develop an Image viewing application using C# and WPF.
I would like to have my Arduino respond to information taken from my Kinect.
Using Windows Forms, .NET 3.5 framework, language: c# I would like to show a
I want to develop Windows WPF application using Kinect with great GUI/NUI. I've found
Using Windows Forms I would like to have a small login screen the user
I um using Windows Azure toolkit for Windows Phone from codeplex. After creating a
I am using Windows 7 64 bit. I have these imports from scikits.audiolab import

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.