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

Maximum recursion depth in Node.js 0.4

as I use Node.js for not too long time yet, I've ran into a following problem. I understand that using callback-driven paradigma we need to convert loops we used in synchronous code into recursion. My problem is I cannot understand how deep node can…
3
votes
1 answer

Incorrect conversion from Raw RGB Depth image to gray

I am working with a simulation in Python equipped with a depth sensor. The visualization it's done in C++. The sensor gives me the following image that I need to convert to gray. For the conversion, I have the next formula: normalized = (R + G *…
GabyUnalaq
  • 43
  • 3
3
votes
3 answers

How a good depth map can be created with stereo cameras?

I'm studying on a project for a long time. My aim is to get depth map from stereo cameras' images and filter humans only in order to count human inside. I am trying to calibrate my camera, continuously for 1-2 months. Nevertheless, when I draw…
kursat-06
  • 31
  • 3
3
votes
1 answer

Is it impossible to get the depth of elements inside a Traversable?

Suppose I have this Tree type: {-# LANGUAGE DeriveFoldable, DeriveFunctor #-} data Tree a = Leaf | Branch (Tree a) a (Tree a) deriving(Functor,Foldable) instance Traversable Tree where -- equivalent to the one I could derive, but written out for…
3
votes
0 answers

How can I record AVDepthData video and save in the gallery?

I am developing an application to record RGB-D sequences with the iPhone by using the DualRearCamera or the TrueDepthCamera. I can capture and visualize the RGB frame and depth frames and I developed a version where I can compress this data and save…
3
votes
0 answers

How to get depth-map values from image?

I was wondering if I can get the depth values of an image in Javascript? Basically what I'm looking for, is to get where the objects of the image are near of far away from the camera (in my case the object is a human face). Something like the image…
Loizos Vasileiou
  • 674
  • 10
  • 37
3
votes
0 answers

AVFoundation - Depth data capturing after raw freezes the camera preview (captureSessionIsMissing)

I am working on camera application for iOS using AVFoundation framework. It has 2 options for capturing, either in RAW (DNG) or depth mode. It works fine except the scenario when I first make raw image and then the depth one. After that preview…
3
votes
1 answer

HLSL modify depth in pixel shader

I need to render an image (with depth) which I get from outside. I can construct two textures and pass them into a shader with no problem (I can verify values sampled in a pixel shader being correct). Here's how my HLSL looks like: // image…
chainerlt
  • 215
  • 3
  • 8
3
votes
2 answers

Depth of a PostgreSQL function

How can i know the depth of a stored procedure (they are called function in postgresql), that function calls two other recursive function ? Is it possible to know many time that function was called. The reason why i want to do that is because i…
3
votes
1 answer

CIDepthBlurEffect: setting inputFocusRect

I can't manage to find the correct way to set the "inputFocusRect" value from a touch point. I'm grabbing the touch point using @IBAction func imageTapped(_ sender: UITapGestureRecognizer) { var touchPoint = sender.location(in: self.imageView) …
3
votes
1 answer

Android depth buffer issue: Advice for anyone experiencing problem

I've wasted around 30 hours this week writing and re-writing code, believing that I had misunderstood how the OpenGL depth buffer works. Everything I tried, failed. I have now resolved my problem by finding what may be an error in the Android…
Andrew Smith
  • 2,589
  • 3
  • 19
  • 17
3
votes
1 answer

SSAO implementation in Babylon JS and GLSL, using view ray for depth comparison

I'm trying to create my own SSAO shader in forward rendering (not in post processing) with GLSL. I'm encountering some issues, but I really can't figure out what's wrong with my code. It is created with Babylon JS engine as a BABYLON.ShaderMaterial…
Damian Taylor
  • 51
  • 1
  • 8
3
votes
1 answer

WebGL drawing 2D image with depth map to achieve pseudo-3D effect

I'm learning WebGL, done that with the help of WebGLFundamentals page, which helped me pretty much to understand how buffers, shaders and all that stuff works. But now I want to achieve a certain effect which I saw here:…
NickyP
  • 85
  • 3
  • 9
3
votes
5 answers

GNU find: Search in current directory first

how can I tell find to look in the current folder first and then continue search in subfolders? I have the following: $ find . -iname '.note' folder/1/.note folder/2/.note folder/3/.note folder/.note What I want is this: $ find . -iname…
dmorlock
  • 1,993
  • 4
  • 18
  • 22
3
votes
1 answer

OpenNI depth Image swap depth display

I've been able to find/create some code that allows me to open the depth and color stream from the OpenNI enabled camera (It is an Orbbec Astra S to be specific). Except unlike with the standard OpenNI Viewer, My stream displays the closest points…
James Mallett
  • 827
  • 4
  • 11
  • 27