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

Abstract Inheritance in Django Model, causing MAX recursion depth error

I'm trying to implement abstract inheritance in Django with the following code, but it produces a MAX recursion depth error. I'm trying to override a model's save method. class BaseModel(models.Model): class Meta: abstract = True …
ultrajohn
  • 2,527
  • 4
  • 31
  • 56
8
votes
4 answers

Z buffer issue by mixing 2D sprites with 3D model

I have to create a 2d menu, over a 3d model, using XNA. Right now, I have created spritebatch for 2D, and a 3d model. But, as i have noticed, and was mentioned in other places, model is not being displayed properly, because of z buffer issue.…
jitendragarg
  • 945
  • 1
  • 14
  • 54
8
votes
3 answers

Non-recursive git log and diff

git log -p . only within the current directory but not in subdirectories equivalent svn log --diff --depth files . Is it possible?
bdimych
  • 291
  • 2
  • 8
8
votes
1 answer

Key Difference between Active IR image and depth image in Kinect V2

I just have a confusion in understanding the difference between the Active IR image and depth Image of Kinect v2. Can anyone tell me the what special features Active IR image have as compare to depth image?
Addee
  • 663
  • 10
  • 21
7
votes
1 answer

Android camera2 - devices supporting depth output

I saw the following in the Android documentation for camera2 from API level…
Guillaume
  • 197
  • 2
  • 12
7
votes
1 answer

Finding the product of a variable number of Ruby arrays

I'm looking to find all combinations of single items from a variable number of arrays. How do I do this in Ruby? Given two arrays, I can use Array.product like this: groups = [] groups[0] = ["hello", "goodbye"] groups[1] = ["world",…
Ollie Glass
  • 19,455
  • 21
  • 76
  • 107
7
votes
5 answers

Recursion to find depth of expression

I am trying to use recursion to find the depth of an "expression", i.e., how many layers of nested tuples there are: For example, depth(('+', ('expt', 'x', 2), ('expt', 'y', 2))) => 2 depth(('/', ('expt', 'x', 5), ('expt', ('-', ('expt', 'x', 2),…
Ishu108
  • 103
  • 2
  • 5
7
votes
1 answer

Using OpenCV to generate 3d points (assuming frontal parallel configuration)

I am currently trying to generate 3D points given stereo image pair in OpenCV. This has been done quite a bit as far as I can search. I know the extrinsic parameters of the stereo setup which I'm going to assume is in frontal parallel configuration…
vsector
  • 437
  • 6
  • 14
7
votes
3 answers

How to get depth of current node in JTree?

I have a JTree with a few nodes and subnodes. When I click on a node I want to know on which depth is it (0, 1, 3). How can I know that? selected_node.getDepth(); doesn't return the depth of current node..
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
6
votes
2 answers

When using Perl's File::Find what's a quick & easy way to limit search depth?

I want to be able to limit Perl's File::Find to a directory depth (below the specified search) to the specified directory and 1 & 2 subdirectories beneath it. I want to be able to enumerate the files at the same time, if this is possible. It must…
unixman83
  • 9,421
  • 10
  • 68
  • 102
6
votes
2 answers

Save Kinect depth image in Matlab?

By using Kinect, I can get depth image in which each depth image pixel store the distance(in millimeter) between camera and object. Now I want to save them so that I can use later. What is the best recommendation? I am thinking to save the depth…
John
  • 3,888
  • 11
  • 46
  • 84
6
votes
1 answer

Generate point cloud from depth image

I am trying to convert a depth image (RGBD) into a 3d point cloud. The solution I am currently using is taken from this post where: cx = image center height cy = image center width fx and fy = 250, chosen by iterating through a few options The…
Lloyd Rayner
  • 1,009
  • 2
  • 7
  • 10
6
votes
0 answers

Absolute depth from iPhone X back camera using disparity from AVDepthData?

I'm trying to estimate the absolute depth (in meters) from an AVDepthData object based on this equation: depth = baseline x focal_length / (disparity + d_offset). I have all the parameters from cameraCalibrationData, but does this still apply to an…
Wes W.
  • 93
  • 5
6
votes
1 answer

Adding a persistent UIView with a UITabBarController

I have an app using a UITabBarController, and I have another view that needs to slide up from behind the tab bar controls, but in front of the tab bar's content. If that's not clear, imagine an advertisement sliding up in a tabbed app that appears…
shulmey
  • 101
  • 7
6
votes
1 answer

Gradle print directories in a folder - X level

I have the following folder structure under build folder (which you get during a Gradle…
AKS
  • 16,482
  • 43
  • 166
  • 258
1 2
3
49 50