Matlab z buffer for simulating kinect
Asked Answered
A

1

3

We are trying to simulate simple kinect output.

I have rendered a triangle mesh in Matlab and now I want to get at the depth buffer of the figure/axis where the shape has been rendered. How do I do that in matlab? i.e. how do I access the depth buffer of a figure?

Amperehour answered 11/5, 2011 at 11:5 Comment(7)
I have done something similar where I wrote a raycasting algorithm to simulate such output. It never really worked too well (very slow on large meshes). I'd be interested to know if you can get it directly from a figure, as this would be much easier...Swaziland
I guess your real question is how to get access to the JOGL objects used by MatLab's own figures?Aube
That sounds like a good way to phrase it. I didnt realize Matlab figures were JOGL objects.Amperehour
Could any one find the solution of this problem ?Lowder
@Ben Voigt, are you sure that they are JOGL objects and not JFrame objects? Does Matlab necessarily use OpenGL? Is there a chance it uses direct canvas drawing instead? In either case the question is still open and I have left a 300 bounty on it.#8862967Amperehour
@twerdster: I know MatLab uses OpenGL for rendering. I don't know which wrapper it uses, could be JOGL, could be something else.Aube
The question has been answered [here][1] [1]: #8862967Amperehour
F
0

You could try this.

Feeling answered 8/1, 2012 at 0:10 Comment(1)
Unfortunately thats not what we are looking for at all. We need a per pixel depth value for the current figure output.Amperehour

© 2022 - 2024 — McMap. All rights reserved.