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
4
votes
1 answer

Restrict the depth of nested elements in XSD

Is it possible with XML schema to restrict the depth of child elements nested in a parent? The context here is I collect alarms from a management system and I want to provide a XML document which allows the end user define some rules in order to…
tja
  • 67
  • 4
  • 9
4
votes
2 answers

Get file depth in directory tree

I'm using command find to recursively browse through directory tree, counting files, sizes, etc... Now I need to get directory depth of each file. Is there any portable way for both FreeBSD and CentOS? I know that find is able to prinf actual…
Mára Toner
  • 302
  • 2
  • 16
4
votes
1 answer

finding maximum depth of random forest given the number of features

How do we find maximum depth of Random Forest if we know the number of features ? This is needed for regularizing random forest classifier.
mach
  • 318
  • 1
  • 5
  • 13
4
votes
0 answers

Scrapy recursive crawling with max DEPTH - Infinite loop

i'm new with scrapy, i'm trying to build a spider that must do this kind work: Extract all links from a generic web page recursively and with a specific depth. I'm tryng to do this with following code: class MySpider(CrawlSpider): …
tommy rach
  • 71
  • 5
4
votes
3 answers

How to write to the OpenGL Depth Buffer

I'm trying to implement an old-school technique where a rendered background image AND preset depth information is used to occlude other objects in the scene. So for instance if you have a picture of a room with some wires hanging from the ceiling in…
Mikepote
  • 6,042
  • 3
  • 34
  • 38
4
votes
3 answers

AS3 - At exactly 23 empty alpha channels, images below stop drawing

I noticed, while trying to draw large numbers of circles, that occasionally, there would be some kind of visual bug where some circles wouldn't draw properly. Well, I narrowed it down, and have noticed that if there is 23 or more objects with 00 for…
4
votes
3 answers

How to avoid depth recursion in nested functions with python

Say we have this code: a = 1 def func1(): if a == 1: func2() def func2(): if a == 1: func3() def func3(): func1() Is there a way we could make func3 call func1 stepping out of the 'parent functions' it already…
I want badges
  • 6,155
  • 5
  • 23
  • 38
4
votes
5 answers

opencv stereo vision depth map, code does not work

I am studying on stereo vision depth map and I am using the opencv library.I wrote a program to obtain depth map. But when program was run I obtained an empty depth map frame.can anybody help me please, what is wrong ? code are shown in…
user3634599
  • 49
  • 1
  • 1
  • 2
4
votes
1 answer

Render depth from framebuffer texture

I've been trying to add SSAO (based on the tutorial here: http://john-chapman-graphics.blogspot.co.nz/2013/01/ssao-tutorial.html) to a project of mine and I've gotten stuck on rendering the depth correctly. I have created a framebuffer texture to…
sler
  • 974
  • 1
  • 11
  • 19
4
votes
1 answer

Why is openGL glDepthFunc() not working?

im playing with openGL and im trying to get rid of blue marked triangles. I use for it this code: glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); glEnable(GL_CULL_FACE); And yes I use glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); in my…
matlos
  • 401
  • 1
  • 6
  • 11
4
votes
1 answer

Depth stencil not working - DirectX 10 C++

I have a DirectX10 + C++ problem. Basically we're at the early stages of rendering, and for some reason our depth stencil seems to be failing to understand our model. Basically, here is everything we are doing: Load shader, model and…
Zantom07
  • 61
  • 4
4
votes
0 answers

Linux scsi command queue

I'm a newbie here at this forum. I'm currently stuck with a problem. I'm a beginner to Linux kernel drivers, and currently involved in developing a Linux SCSI device driver for a block mass storage device. The development platform is on a high-end…
ubermensch
  • 363
  • 2
  • 12
4
votes
2 answers

Use OpenGL Depth information in CUDA

I know GL_DEPTH_COMPONENT is not supported in CUDA interoperability at CUDA 4.2, but I wonder if GL_DEPTH_COMPONENT is going to be supported in CUDA 5 or in future versions. Currently I'm rendering depth information to a texture using a fbo. Then I…
3
votes
3 answers

Rendering glitch with GL_DEPTH_TEST and transparent textures

From one angle my shrubs look like this: From the other, they look like this: My theory is that when looking at the shrubs from the first angle, all the blocks behind the shrub have already been drawn, so when it comes to draw the shrub, it just…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
3
votes
2 answers

Kinect raw depth to distance in meters

I am trying to convert Kinect depth map to distance in meters. The problem is that for depthmap value '1080' and around it, distance is too large because the term in denominator becomes very close to '0'. and for values above '1090', distance is…
Saad
  • 933
  • 3
  • 8
  • 10