Questions tagged [depth]

The depth of a node in a tree is the length of the path to its root. The depth of an image is the number of bits used to indicate the color of a single pixel.

The depth of a node in a tree is the length of the path to its root. The depth of the tree is the maximum depth of all nodes.

See also:


The depth of an image is the number of bits used to indicate the color of a single pixel.

See also:

742 questions
3
votes
1 answer

What could i implement to learn .net GC in depth

I know some details of how it works by Richter's book, but i want to "feel" it in practice. I see some variants: Write my own GC implementation by .NET standard (just kidding, it is too hardcore to do it on my own :) Study MONO implementation of GC…
nameless_one
  • 139
  • 6
3
votes
2 answers

WebGL Depth Texture all white?

I'm using the WEBGL_depth_texture in chrome to render a scene to a framebuffer with a color and depth texture. When I display my color texture works fine, but my depthtexture is all white. Shouldn't it be like gray? my draw texture…
Pris0n
  • 350
  • 1
  • 5
  • 24
3
votes
1 answer

WebGL display framebuffer?

I used the WEBKIT_WEBGL_depth_texture Extension. And init the buffers below. But how am I able to draw this framebuffer?? I'm totaly stuck right now. -.- function InitDepthtextures (){ var size = 256; // Create a color texture var colorTexture =…
Pris0n
  • 350
  • 1
  • 5
  • 24
3
votes
1 answer

opengl depth buffer slow when points have same depth

I'm making a 2d game involving drawing huge numbers of overlapping quads to the screen. What goes in front of what doesn't really matter. If I draw each of my quads with z values from 0 upwards and have glDepthFunc(GL_LESS) set I get quite a nice…
Ellipsis
  • 63
  • 6
3
votes
2 answers

openCV Depth map from two calibrated cameras forming a stereoscopic system

I would like some help in continuing my code using openCV library in order to find the depth values of objects seen in the cameras. I have already done the calibration and found the dispaity map, i can't find a clear help of how to calculate the…
Rita M
  • 33
  • 1
  • 3
3
votes
3 answers

Calculate depth in a parent-child model in MySQL

How do I calculate a node's depth in a parent-child model under MySQL? I'll need the depth to, among other things, create the indent in my list (coded with PHP).
Ivar
  • 4,344
  • 6
  • 38
  • 53
3
votes
2 answers

OpenCV: Change depth and log transform

I'm trying to learn OpenCV and I want to apply this simple formula: That is a per-pixel operation and transform the pixel from r to s. This is my code: int main(int /*argc*/, char** /*argv*/) { Mat _img = imread("lena.jpg"); …
nkint
  • 11,513
  • 31
  • 103
  • 174
3
votes
2 answers

Isometric depth sorting issue with big objects

I'm currently building an as3 isometric game, but I'm having a lot of problem with depth sorting. I've searched for a solution, but didn't found anything that match my problem (rectangle objects). Here is a screenshot of my game: As you can see,…
Sanchex
  • 31
  • 1
  • 2
3
votes
1 answer

Determine bit depth of a video file

Im trying to find the bit depth of a particular video file. Does any one know of any tools i can use to find this? Thanks!
FredBones
  • 1,355
  • 2
  • 12
  • 17
2
votes
0 answers

Depth feed from Kinect not updating

I'm using a combination of OpenKinect and OpenCV libraries to apply Haar-like feature recognition to both RGB and depth images. I can get the live feed and successfully detect objects using the RGB feed however the depth is giving me massive…
Cabe6403
  • 53
  • 6
2
votes
0 answers

Kinect - Calculating Surface Area

I'd like to be able to calculate the surface area of objects seen by the depth camera. Is there an easy way to do this? For example if the kinect is seeing a player I need to calculate how much surface it is covering. If there is no such functions…
Mart Coul
  • 490
  • 6
  • 15
2
votes
2 answers

opengl shader pipeline depth calculation

i'm trying to figure out what happens internally in a vertex-fragment shader pair. To be more specific i'm trying to compare depth values on the cpu. On of these depth values is calculated by a shader and correspond to the gl_FragCoord.z value. What…
Donny
  • 549
  • 2
  • 10
  • 24
2
votes
2 answers

find the smallest depth leaf node in bst

Need to get the leaf node that has minimum depth. I cannot think of a good way to do it without storing additional information in each node, please suggest, thanks very much.
Shang Wang
  • 24,909
  • 20
  • 73
  • 94
2
votes
1 answer

how to handle depth in glsl

I have a problem with FBO and depth in openGL. I am passing projection, view and model matrices to a shader that writes to the g buffer. When I unbind the FBO and write to gl_FragColor the scene displays as it ought. But when I write to…
ste3e
  • 995
  • 1
  • 9
  • 18
2
votes
3 answers

3D-Anaglyph creation algorithm, using depth map image: where to find?

I'm looking for a generic algorithm to calculate a red/cian anaglyph starting from the original image and his b/w depth map (example: http://www.swell3d.com/2008/07/turn-2d-painting-into-3d-anagl.html) That algorythm are used, for example, in…
TheUnexpected
  • 3,077
  • 6
  • 32
  • 62