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

Add arg to launch file

Instead of running a package using command line, I made a launch file Commande line: rosrun image_view image_saver image:=/the-rgb-image-topic Launch file:
Ja_cpp
  • 2,426
  • 7
  • 27
  • 49
3
votes
1 answer

wordnet 3.0 maximum depth of the taxonomy

How can I know the maximum depth of the taxonomy for wordnet 3.0? (is-a relationships for synsets) I read some papers and found from a paper that it is 16 for wordnet 1.7.1. I'm wondering the value for wordnet 3.0.
3
votes
2 answers

Python: How to get real depth from disparity map

I am a complete beginner I am trying to obtain real depth map from left and right image. I've used OpenCV to get the disparity map via block matching as you can see in the code bellow. import cv2 import cv2.cv as cv import sys import numpy as…
Anna1994
  • 140
  • 1
  • 12
3
votes
3 answers

Expression for nesting count of elements using xpath

in an xml schema nesting of s is allowed unbounded e.g. in an unordered list of items (which is for random list). These items may contain subitems that may be sublisted using as a subelement within another list element such…
IlkerS
  • 33
  • 5
3
votes
1 answer

mysql to get depth of record, count parent and ancestor records

Say I have a post table containing the fields post_id and parent_post_id. I want to return every record in the post table with a count of the "depth" of the post. By depth, I mean, how many parent and ancestor records exist. Take this data for…
Nate
  • 2,035
  • 8
  • 23
  • 33
3
votes
2 answers

How can I keep track of my stack trace height for debugging purposes?

I want my code to do the following: def debug (message) puts message.rjust(message.length + (stack_trace-1 * 2)) # -1 for the call to debug end def a debug "in a" b debug "end a" end def b debug "in b" c debug "end b" end def c …
Devon Parsons
  • 1,234
  • 14
  • 23
3
votes
2 answers

How to use 2 different item renderers in mx:Tree

Question for Flex guys. How can I use multiple item renderers in mx:Tree depending on item's depth/level in tree? For example. For the first level items I want to use label with button and for second level items combobox. Is this somehow possible?
luccio
  • 485
  • 1
  • 6
  • 24
3
votes
1 answer

What is the average asymptotic depth of a simple unbalanced search tree?

For a balanced search tree, it is O(log(N)) for all cases. For unbalanced search trees, the worst case is O(N), e.g., insert 1, 2, 3, 4,.. and best case complexity is when it is balanced, e.g., insert 6, 4, 8, 3, 5 7. How do we define the average…
user236215
  • 7,278
  • 23
  • 59
  • 87
3
votes
2 answers

Postgresql: Trigger Function on After Insert/Updates: Stack Depth Limit Error

I have a Postgresql database Trigger which is supposed to invoke a Function after either a new row is Insert or a row is Updated. Here is the Trigger: CREATE TRIGGER firefly_new_geom AFTER INSERT OR UPDATE ON public.entries FOR EACH STATEMENT…
IrfanClemson
  • 1,699
  • 6
  • 33
  • 52
3
votes
1 answer

How to get depth images from Kinect and SoftKinetic at the same time?

I am trying to view the depth images from Kinect for Windows and SoftKinetic DepthSense 325 at the same time. Later, I plan to write a program to grab and write the depth images from both devices. For viewing depth images from Kinect for Windows, I…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
3
votes
1 answer

How to get the position (x,y) from a Kinect depth array?

While working with the kinect I found out, that the bitmap and its depth information are unreliable and for some reason much more disturbed than the data from the actual byte array. I realised this when I tried get the min and max by accessing the…
Nikolas Rieble
  • 2,416
  • 20
  • 43
3
votes
1 answer

unable to read depth values from depth texture attached to FBO

I am unable to read correct depth values from depth texture using glreadpixels function. FBO status is complete. other render targets also look fine after blitting to another FBO. code snippet: // Create the FBO glGenFramebuffers(1,…
user942502
  • 111
  • 1
  • 7
3
votes
1 answer

Plotting a depth profile with ggplot

I'm trying to figure out the best way to plot several depth profiles with Depth on the y-axis (obviously) and Salinity and Temperature on the x-axis. It works fine with just Temperature, faceting the graphs by date. But I want to include Salinity in…
user2949987
  • 31
  • 1
  • 2
3
votes
1 answer

Depth stencil buffer not working directx11

ok i tried everything at this point and I'm really lost.... ID3D11Texture2D* depthStencilTexture; D3D11_TEXTURE2D_DESC depthTexDesc; ZeroMemory (&depthTexDesc, sizeof(D3D11_TEXTURE2D_DESC)); depthTexDesc.Width =…
3
votes
2 answers

How do I query status of update sticky depth in svn, set by --set-depth?

So let's say I've changed my "sticky depth" of a working copy directory to 'immediates', with svn update --set-depth immediates my_dir (Something related to sparse dirs.) How do I determine this status of my_dir? Eg. I forgot which depth did I set,…
n611x007
  • 8,952
  • 8
  • 59
  • 102