depth

Unresolved external symbol with openCV

梦想的初衷 提交于 2019-12-25 01:56:22
问题 I'm trying to initialize OpenNI sensors using OpenCV in order to get depth map from depth sensor of my kinect. The code I used to get one depth image: and The output I get: LNK2019: unresolved external symbol "int __cdelc cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) reference in function _main In the .pro file I have: QT += widgets WITH_OPENNI = ON 来源: https://stackoverflow.com/questions/16038602/unresolved-external-symbol-with-opencv

Is it possible to extract the player's depth pixels only, out of the depth bitmap?

百般思念 提交于 2019-12-24 00:35:46
问题 I am new to kinect developing and new to stackoverflow as well! Here's my situation: Having a depth camera, I can get the depth data easily. What I want to do is once I detect there is a person (player) exists in front of the camera, I would extract the depth pixels of the player only, and put it onto a transparent background, so that the output is a static image of the depth image of the player only, on a transparent background. I would like to ask is it possible to do the job ? I've done

Depth Map three.js

若如初见. 提交于 2019-12-23 23:17:43
问题 Is there any way to obtain a depth map in three.js? I am interested in producing something similar to what a Kinect would produce for a given scene. I have come across a hacky way of using no colors and fog to mimic this but it would not be ideal because it would use two different scenes and would be variant to lighting. Another way to do this I believe would be to access the depth buffer but it appears this cannot be accessed through three.js. 回答1: Yep. Try using MeshDepthMaterial . 来源:

generate a point cloud from a given depth image-matlab Computer Vision System Toolbox

我只是一个虾纸丫 提交于 2019-12-22 12:18:46
问题 I am a beginner in matlab, I have purchased Computer Vision System Toolbox. I have being given 400 of depth images (.PNG images). I would like to create a point cloud for each image. I looked at the documentation of Computer Vision System Toolbox, and there is an example of converting depth image to point cloud (http://uk.mathworks.com/help/vision/ref/depthtopointcloud.html): [xyzPoints,flippedDepthImage] = depthToPointCloud(depthImage,depthDevice) depthDevice = imaq.VideoDevice('kinect',2)

WebGL Depth Texture all white?

给你一囗甜甜゛ 提交于 2019-12-19 10:27:19
问题 I'm using the WEBGL_depth_texture in chrome to render a scene to a framebuffer with a color and depth texture. When I display my color texture works fine, but my depthtexture is all white. Shouldn't it be like gray? my draw texture function: this.drawTexture = function() { //gl.viewport(0, 0, this.canvas.width, this.canvas.height); gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); gl.bindBuffer(gl.ARRAY_BUFFER, this.vertBuffer); gl.vertexAttribPointer(this.VertexPosition, 2, gl.FLOAT,

Aligning captured depth and rgb images

 ̄綄美尐妖づ 提交于 2019-12-19 04:45:31
问题 There has been previous questions (here, here and here) related to my question, however my question has a different aspect to it, which I have not seen in any of the previously asked questions. I have acquired a dataset for my research using Kinect Depth sensor. This dataset is in the format of .png images for both depth and rgb stream at a specific instant. To give you more idea below are the frames: EDIT: I am adding the edge detection output here. Sobel Edge detection output for: RGB Image

Listing the content of a tar file or a directory only down to some level

自闭症网瘾萝莉.ら 提交于 2019-12-18 10:03:54
问题 I wonder how to list the content of a tar file only down to some level? I understand tar tvf mytar.tar will list all files, but sometimes I would like to only see directories down to some level. Similarly, for the command ls , how do I control the level of subdirectories that will be displayed? By default, it will only show the direct subdirectories, but not go further. 回答1: tar tvf scripts.tar | awk -F/ '{if (NF<4) print }' drwx------ glens/glens 0 2010-03-17 10:44 scripts/ -rwxr--r-- glens

Calculate surface normals from depth image using neighboring pixels cross product

ぐ巨炮叔叔 提交于 2019-12-17 21:56:54
问题 As the title says I want to calculate the surface normals of a given depth image by using the cross product of neighboring pixels. I would like to use Opencv for that and avoid using PCL however, I do not really understand the procedure, since my knowledge is quite limited in the subject. Therefore, I would be grateful is someone could provide some hints. To mention here that I do not have any other information except the depth image and the corresponding rgb image, so no K camera matrix

Implementing Depth First Search into C# using List and Stack

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 17:32:51
问题 I want to create a depth first search which I have been somewhat successful in. Here is my code so far (Except my constructor, note the Vertex and Edge classes only contain properties, nothing important to post here): private Stack<Vertex> workerStack = new Stack<Vertex>(); private List<Vertex> vertices = new List<Vertex>(); private List<Edge> edges = new List<Edge>(); private int numberOfVertices; private int numberOfClosedVertices; private int visitNumber = 1; private void StartSearch() { /

104_二叉树的最大深度

江枫思渺然 提交于 2019-12-17 11:18:09
""" 给定一个二叉树,找出其最大深度。 二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。 说明: 叶子节点是指没有子节点的节点。 示例: 给定二叉树 [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 返回它的最大深度 3 。 """ # 递归 def maxDepth ( root ) : if root is None : return 0 else : left_height = maxDepth ( root . left ) right_height = maxDepth ( root . right ) return max ( left_height , right_height ) + 1 # 迭代 def maxDepth2 ( root ) : stack = [ ] if root is not None : stack . append ( ( 1 , root ) ) depth = 0 while stack != [ ] : current_depth , root = stack . pop ( ) if root is not None : depth = max ( depth , current_depth ) stack . append ( ( current_depth + 1 , root