Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Visualize and Volumetrically clip Kinect Depth Data while normalizing Camera coordinates to World space.

Notifications You must be signed in to change notification settings

rickbarraza/UnityKinectDepthExplorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityKinectDepthExplorer

####🍝 SPAGHETTI CODE ALERT 🍝####

A working sample / research repository of using Unity to explore Kinect Depth data and recontextualizing the Color to Camera Space using a user defined, spatial quad. The primary use case is to define a table top "zone of interest" and create an adjusted Depth Image that shades the pixels from the quad surface for subsequent vision processing.

####THIS SKETCH FUNCTIONALLY:####

  1. Converts the raw USHORT depth data from the Depth Frame to an RGBA32 data array based on a two color lerped Color Lookup Table.
  2. Use the DepthData and CoordinateMappoer to populate a ParticleSystem with Camera Space accurate particle data.
  3. Allows the user to define a skewed rectangle of coordinates on the DepthImage to act as a volumetric Zone Of Interest
  4. Allow clipping of the particle system based on the Zone of Interest
  5. Normalize Kinect Camera Space to Unity World Space to reorient the Particle System to use (0,1,0) as up based on the Zone Of Interest.
  6. Rotate Depth Color through the normalized Camera Space so the Adjusted Depth Image shades pixels based on the Quad Normal for future vision algorithms.

About

Visualize and Volumetrically clip Kinect Depth Data while normalizing Camera coordinates to World space.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages