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
2
votes
3 answers

jq get x levels of keys and remove all the rest

How can I get the first x levels of depth of an object and remove the rest using jq ? I have the following example: { "Service1": { "Production": { "Location 1": { "b2d1": { "clusters": { "Datacenter2": [] …
Haim Marko
  • 41
  • 2
2
votes
2 answers

[GLSL]How to compare the z value of all the vertices in world coordinate?

This might be a simple question. As a newbie on GLSL, I would rather ask here. Now, in the vertex shader, I can get the position in world coordinate system in the following way: gl_Position = ftransform(); posWorld = gl_ModelViewMatrix *…
superpanda
  • 21
  • 4
2
votes
0 answers

Possible to access Apple Watch Ultra Depth Data?

Does anyone know if it is possible to access the apple watch ultra depth data from diving? Trying to find api access for this.
2
votes
0 answers

Distorted objects in Azure Kinect camera

we have a problem when trying to use kinect for estimating shape and position of an object due to distortion in PointCloud data. enter image description here at the image above u can see plastic box of size 10x10x10 cm but in pointcloud there is a…
Wasadim
  • 21
  • 1
2
votes
2 answers

How to compute distance values from the depth data embedded into iphone portrait pictures?

I am working on an application that reconstructs point cloud from the depth data. I try to use depth data embedded in portrait images taken by some smartphones. So far I have progress on the Google Camera app photos. It has well documented depth…
George Vinokhodov
  • 327
  • 1
  • 4
  • 10
2
votes
1 answer

Extract depthmap from Google Street View

Many posts such as this one use the REST API of Google Street View like this: http://maps.google.com/cbk?output=xml&ll=40.7625000,-73.9741670&dm=1 However, this API does not work sometimes. Google Street View seems does not rely on that REST API,…
Huan Ning
  • 29
  • 4
2
votes
4 answers

Powershell - Find # of nested folders in long file path of a directory

Can anyone help me w/ a code puzzle in powershell? I'm trying to look at a specific directory on several remote servers, and find the deepest nested subfolder in that directory and then count number of parent folders. Pseudo code below. $servers…
Matt
  • 41
  • 6
2
votes
1 answer

Finding the distance of a binary search tree from the root to a specific key

def distance(self, rootOfTree, key): if rootOfTree is None: return -1 totalDist = -1 if rootOfTree.key is key: return totalDist + 1 else: totalDist = self.distance(rootOfTree.left, key) if…
WassupZ
  • 23
  • 4
2
votes
0 answers

In LightGBM, what does Max_depth = -1 (no limit) means?

what does no limitation mean when tuning the parameter max_depth in LightGBM? does every tree have different depth ? is there a way to check what is the trained model depth?
Or_K
  • 61
  • 6
2
votes
3 answers

finding maximum depth of chapter

everyone . In this case ,I want to conpute the maxximun depth of the chapter.For instance, a book without chapters has height 0 . A book only has chapters with no sections ,the height should be 1.The folowing is xml:
ZAWD
  • 651
  • 7
  • 31
2
votes
2 answers

How to emulate GL_DEPTH_CLAMP_NV?

I have a platform where this extension is not available ( non NVIDIA ). How could I emulate this functionality ? I need it to solve far plane clipping problem when rendering stencil shadow volumes with z-fail algorithm.
user265149
  • 199
  • 2
  • 8
2
votes
1 answer

How to obtain a dense ground truth image for depth prediction in kitti dataset?

For example let's say that this is the input image: Input image This is the original ground truth downloaded: GT But in all the papers they show something like this: heat map How can I obtain the last one?
aca06
  • 45
  • 1
  • 5
2
votes
2 answers

Reading depth value of transparent plane with glReadPixels and gluUnProject

I am trying to create a billiards simulation and have been using glReadPixels along with gluUnProject to project my mouse pointer into the scene. This works fine if the mouse is pointing at an object in the scene (the table for instance) but when it…
Andrew
  • 21
  • 2
2
votes
2 answers

Dataweave - Loop in-depth mapping XML

I have a XML payload that contains the following example: 987S circle cologne1 Bosque
gtx911
  • 1,189
  • 4
  • 25
  • 46
2
votes
0 answers

Is there a method to find depth of each node in a dataframe for a particular index?

I have a pandas dataframe with 3 columns- pageurl, source, and target with pageurl as the index. The source and target are requests from each pageurl. I have converted the requests in source and target to numerical data. I would like to know if…