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
13
votes
9 answers

A circular reference has been detected when serializing the object of class "App\Entity\User" (configured limit: 1)

I am faced with a problem that gives me this error: A circular reference has been detected when serializing the object of class "App\Entity\User" (configured limit: 1) I have an Enterprise entity that has mission orders, vehicles, and users. An…
eronn
  • 1,690
  • 3
  • 21
  • 53
13
votes
2 answers

Q matrix for the reprojectImageTo3D function in opencv

I am doing a project in opencv to detect obstacle in the path of a blind person using stereo calibration. I have calculated the disparity map correctly. Now to find the distance of obstacle from the camera, I want its 3D coordinates [X,Y,Z] , which…
12
votes
1 answer

C# and Kinect v2: Get RGB values that fit to depth-pixel

I played a bit around with the Kinect v2 and C# and tried to get a 512x424 pixel-sized image array that contains depth data aswell as the regarding color information (RGBA). Therefore I used the MultiSourceFrameReader class to receive a…
oRole
  • 1,316
  • 1
  • 8
  • 24
12
votes
1 answer

How does one print depth-level in a Postgres query that uses RECURSIVE to select descendants?

I have a table persons that contains a column for parent_id, which refers to another row in the same table. Assume this is the logical hierarchy: P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 I have written a query that prints all…
thatharmansingh
  • 163
  • 1
  • 1
  • 7
12
votes
1 answer

OpenCV: assertation failed ((img.depth() == CV_8U || img.depth() == CV_32F) && img.type() == templ.type())

I get this error from above and don't know how to avoid it. My aim is to get a screenshot and then perform a template matching on it to see if an icon is shown on the screen at this moment. Till now it's just the position of the icon. My…
Bl4cke4gle
  • 183
  • 2
  • 2
  • 5
12
votes
3 answers

How can I use jQuery find() with a depth limit?

I need to use jquery's "find" selector to get all divs having the class "field_container". The problem is that I can't go too deep in the DOM tree. Here is my simplified HTML structure:
Fabio K
  • 1,297
  • 4
  • 13
  • 24
12
votes
3 answers

OpenCV imwrite saving complete black jpeg

I have done some pre processing for dft , and i am trying to save this image by imwrite. My cropped image has this information output.type() 5 output.channels() 1 output.depth() 5 But everytime when i save it gives…
wolvorinePk
  • 1,760
  • 5
  • 36
  • 67
11
votes
2 answers

What's the best depth map generation algorithm?

I'm into a 2D-to-3D application project and I'm looking for a method to produce the depth map of a single input image, without other external informations. I know that's a sort of "artificial intelligence" mattern but maybe an efficient algorythm…
TheUnexpected
  • 3,077
  • 6
  • 32
  • 62
11
votes
2 answers

Convert 16-bit-depth CvMat* to 8-bit-depth

I'm working with Kinect and OpenCV. I already search in this forum but I didn't find anything like my problem. I keep the raw depth data from Kinect (16 bit), I store it in a CvMat* and then I pass it to the cvGetImage to create an IplImage* from…
Sirnino
  • 111
  • 1
  • 1
  • 3
11
votes
5 answers

How do I keep an object always in front of everything else in OpenGL?

I have this function which draws a small 3D axis coordinate system on the bottom left corner of the screen but depending on what I have in front of me, it may get clipped. For instance, I have drawn a plain terrain on the ground, on the XZ plane at…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
11
votes
3 answers

How to normalize disparity data in iOS?

In WWDC session "Image Editing with Depth" they mentioned few times normalizedDisparity and normalizedDisparityImage: "The basic idea is that we're going to map our normalized disparity values into values between 0 and 1" "So once you know the…
Jimmy
  • 10,427
  • 18
  • 67
  • 122
11
votes
3 answers

Depth as distance to camera plane in GLSL

I have a pair of GLSL shaders that give me the depth map of the objects in my scene. What I get now is the distance from each pixel to the camera. What I need is to get the distance from the pixel to the camera plane. Let me illustrate with a little…
Lucian
  • 125
  • 1
  • 1
  • 8
10
votes
0 answers

CIDepthBlurEffect rendering issue on iOS 12

I have following that works fine on iOS 11: let ciContext = CIContext(options: [kCIContextWorkingFormat : kCIFormatRGBAh]) var outputImage : CIImage let mainImage = CIImage(data: jpegData) let disparityImage = CIImage(data:…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
9
votes
3 answers

How to copy depth buffer to a texture on the GPU?

I want to get the current depth buffer to a texture, to access it in a shader. For various reasons I can't do a separate depth pass, but would need to copy the already-rendered depth. glReadPixels would involve the CPU and potentially kill…
Anon
  • 91
  • 1
  • 1
  • 2
9
votes
2 answers

Explain how recursion works in an algorithm to determine depth of binary tree?

I am new to data structures in JavaScript and am trying to learn Binary Search Trees. I was following along with a blog post and was able to get a working solution to the problem of finding the max depth in a BST, but it's unclear to me how the…
devdropper87
  • 4,025
  • 11
  • 44
  • 70
1
2
3
49 50