Skip to content

ivaylopg/RGBDToolkit-to-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

RGBDToolkit-to-Processing

Allows you to use RGBD Toolkit to capture a scene and then bring the SAME depth info into processing. This is useful for when two projects need to have identical takes/performances.

This sketch takes the PNG image sequence that comes out of RGBD Toolkit and converst it to (X,Y,Z) coordinates. All it is doing right now is creating a pointcloud, but you can change it to do pretty much anything.

Controls:
o: open new folder
up/down arrows: x-axis rotation
left/right arrows: y-axis rotation
w/s: forward/back
a/d: left/right
e/c: up/down
</>: z cutoff
numbers 1 - 9: adjust resolution
SPACE: play/pause

i: toggle info
h: toggle help
r: reset view

This does not (yet) take into account the geometric callibration done in RGBD Toolkit, although it seems to be just a matter of modifying the constants in the depthToWorld() function. If anyone wants to play around with this, let me know. I probably won't get to it until it becomes an issue in the project I'm working on.

Make sure you have a good amount of memory allocated for Processing in the preferences if you will be using very long image sequences. If you find that it keeps running out of memory, try pausing playback while you're moving the camera around, and then start it again when you find a good angle.

Feel free to improve the code and make changes. Let me know if you have any questions. I've included a sequence of PNGs so you can try the sketch out.

contact@ivaylogetov.com

About

Convert PNG depth image sequence from RGBD Toolkit to (x,y,z) in Processing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published