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

Shortest possible depth of a leaf in decision tree (comparison sorting algorithm)

What is the shortest possible depth of a leaf in decision tree refering to comparison sorting algorithm ? Does it change depending on the alogrithm?
Kamil Gosciminski
  • 16,547
  • 8
  • 49
  • 72
6
votes
2 answers

OpenCv depth estimation from Disparity map

I'm trying to estimate depth from a stereo pair images with OpenCV. I have disparity map and depth estimation can be obtained as: (Baseline*focal) depth = ------------------ (disparity*SensorSize) I have used Block…
Speed87
  • 137
  • 1
  • 2
  • 5
6
votes
2 answers

color depth reduction with opencv and LUT

I'd like to perform a color reduction via color depth scaling. Like this example: the first image is CGA resolution, the second is EGA, the third is HAM. I'd like to do it with cv::LUT because i think it is the betterway to do it. I can do with…
nkint
  • 11,513
  • 31
  • 103
  • 174
6
votes
1 answer

rmagick pixel color value

I am using rmagick to deal with getting a each single pixel of a bitmap. I need to get the values of colors in depth of 8 (256 colors), but unfortunately when i use pixel.[color] (pixel. red for example), i am getting them in depth of 16. It is…
Michal
  • 459
  • 2
  • 7
  • 25
6
votes
2 answers

How to implement Depth of Field in Ray Tracer?

Can someone help me with the depth of field implementation in Ray Tracer please? I am using a simple pin-hole camera model as shown below. I need to know how we can generate DOF effect using pin-hole camera model? (image is taken from…
sinner
  • 803
  • 2
  • 11
  • 24
5
votes
2 answers

How to use OpenGL orthographic projection with the depth buffer?

I've rendered a 3D scene using glFrustum() perspective mode. I then have a 2D object that I place over the 3D scene to act as a label for a particular 3D object. I have calculated the 2D position of the 3D object using using gluProject() at which…
chris
  • 1,731
  • 4
  • 26
  • 33
5
votes
0 answers

No depthData with iPhone X, iPhone XS is fine

I am not getting depthData when I take a photo on an iPhone X the first time I take a picture. Camera permissions are valid If I run the code on the iPhone X, take a picture, no depth data, if I tap again, I get depth data. If I add a delay before I…
Chris
  • 2,739
  • 4
  • 29
  • 57
5
votes
3 answers

List folders at or below a given depth in Powershell

I have a directory which contains a lot of folders. I want to list all folder (path) that go deeper than 2 levels. So in below case folder 1 &…
Nick
  • 161
  • 1
  • 2
  • 14
5
votes
1 answer

how to load .JSON file to RealSense D435 camera using C++ and intel API

I'm trying to tune my depth camera (RealSense D435) to get better/different depth data. Therefore i want to experiment with the different pre sets from intel's adviced parameter configuration as explained in the intel SDK. Intel advices to use the…
Wouter61636
  • 91
  • 1
  • 5
5
votes
0 answers

How to extract depth from JPEG in Swift

The following code does not seem be able to extract depth data from an image (which contains depth information). The code returns nil after the "guard { auxdepthinfo -...)" line. In the following code, the image is a reference to a portrait image…
5
votes
1 answer

Collapse d3js tree to a specified depth

I'm new to d3js and javascript in general. I am trying to create a tree of more than 8000 nodes, and used the basic tree examples available and modified to display vertically. Example data is hard coded, however, on my local server, I read the data…
hawashim
  • 97
  • 2
  • 9
5
votes
5 answers

python multithread "maximum recursion depth exceed"

I use Python multithread to realize Quicksort. Quicksort is implement in a function. It is a recursive function. Each thread calls Quicksort to sort the array it has. Each thread has its own array that stores the numbers needs to be sorted. If the…
chnet
  • 1,993
  • 9
  • 36
  • 51
5
votes
1 answer

How does Kinect calculates depth?

I'm getting a little bit confused here. How does Kinect calculates depth: What I understand is that The IR projector throws out a pattern which is reflected back and read by the IR camera. Now the IR camera knows the pattern for a particular depth.…
Shashwat
  • 2,538
  • 7
  • 37
  • 56
5
votes
1 answer

Flags and Depth in Coding (Pygame)

So I am starting to learn pygame and in this line: pygame.display.set_mode((640,300), 0, 32) I'm wondering what does the 0, and 32 mean, and how will the program change if I change these two variables.
Fderal
  • 457
  • 1
  • 6
  • 11