depth

iterative closest point library

送分小仙女□ 提交于 2020-01-01 18:57:50
问题 is there any c++/c open source implementation? i got two point clouds and would like to match them.. any ideas? 回答1: Give LibICP a shot, although I personally have not used it so far. http://www.cvlibs.net/software/libicp.html EDIT: I tried it by myself, not a great experience -- the library is short of documentation and example code. Also, I didn't receive much help from the authors too. 回答2: I wrote a article about accelerated line search on ddj.com some time ago. I dont exactly understand

Save Kinect depth image in Matlab?

爱⌒轻易说出口 提交于 2020-01-01 10:04:11
问题 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 image as an image (jpg/png, etc). However, the value is usually from 50 mm to 10000 mm while the normal image element can store from 0-255. Then I will need to scale the data to range 0-255 and that may exploit the data somehow. 回答1: You can use any

Save Kinect depth image in Matlab?

ε祈祈猫儿з 提交于 2020-01-01 10:04:07
问题 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 image as an image (jpg/png, etc). However, the value is usually from 50 mm to 10000 mm while the normal image element can store from 0-255. Then I will need to scale the data to range 0-255 and that may exploit the data somehow. 回答1: You can use any

c++ - FreeImage+OpenCV - 16bit image get distorted

人盡茶涼 提交于 2019-12-31 06:41:46
问题 I'm trying to load an image because I have to apply an algorithm on it. If I load an 8 bit-per-channel image there are no problems, but if I load a 16bpc image then it get "ruined". Unfortunatly, since I don't have enough reputation I can't uplad images. Those are the links to them: Either the source and the 8bpc processing result http://postimg.org/image/gc0zf2lp5/ ..result if I process the same image saved as 16bpc http://postimg.org/image/5nnwee7df/ And this is the code: FreeImage

Tail recursive maximum depth method of binary tree in Scala

情到浓时终转凉″ 提交于 2019-12-31 05:42:37
问题 I wrote a method to calculate the maximum depth of a binary tree. I would like to write a tail recursive method. I thought of using lists, but I didn't find solutions This is my method that is not tail recursive: def depth: Int = { def iter(f: FormulaWff): Int = f match { case Var(_) => 0 case Not(e1) => 1 + iter(e1) case And(e1, e2) => 1 + Math.max(iter(e1), iter(e2)) case Or(e1, e2) => 1 + Math.max(iter(e1), iter(e2)) case Implies(e1, e2) => 1 + Math.max(iter(e1), iter(e2)) } iter(this) }

OpenCV imwrite saving complete black jpeg

若如初见. 提交于 2019-12-30 06:15:07
问题 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 black output. I have checked old existing threads of stackoverflow but all seems not working for me. e.g. OpenCV2.3 imwrite saves black image I have tried many color conversions and depth conversion as well but i dont know why it does not work. std::vector<int> qualityType;

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

两盒软妹~` 提交于 2019-12-30 03:22:04
问题 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 (really, it isn't that bad!). I know the focal length, baseline, and I'm going to assume the principal point as the center of the image (I know, I know...). I calculate a psuedo-decent disparity map using StereoSGBM and hand coded the Q matrix

tensorflow学习笔记——ResNet

自闭症网瘾萝莉.ら 提交于 2019-12-28 09:06:56
  自2012年AlexNet提出以来,图像分类、目标检测等一系列领域都被卷积神经网络CNN统治着。接下来的时间里,人们不断设计新的深度学习网络模型来获得更好的训练效果。一般而言,许多网络结构的改进(例如从VGG到ResNet可以给很多不同的计算机视觉领域带来进一步性能的提高。   ResNet(Residual Neural Network)由微软研究员的 Kaiming He 等四位华人提出,通过使用 Residual Uint 成功训练152层深的神经网络,在 ILSVRC 2015比赛中获得了冠军,取得了 3.57%的top-5 的错误率,同时参数量却比 VGGNet低,效果非常突出,因为它“简单与实用”并存,之后很多方法都建立在ResNet50或者ResNet101的基础上完成的,检测,分割,识别等领域都纷纷使用ResNet,Alpha zero 也使用了ResNet,所以可见ResNet确实很好用。ResNet的结构可以极快的加速超深神经网络的训练,模型的准确率也有非常大的提升。之前我们学习了Inception V3,而Inception V4则是将 Inception Module和ResNet相结合。可以看到ResNet是一个推广性非常好的网络结构,甚至可以直接应用到 Inception Net中。 1,Highway Network简介   在ResNet之前

opencv学习笔记[10]:IplImage数据结构

落爺英雄遲暮 提交于 2019-12-27 02:54:09
1.IplImage数据结构 typedef struct _IplImage { int nSize; /* sizeof(IplImage) */ int ID; /* version (=0)*/ int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 channels */ int alphaChannel; /* Ignored by OpenCV */ int depth; /* Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported. */ char colorModel[4]; /* Ignored by OpenCV */ char channelSeq[4]; /* ditto */ int dataOrder; /* 0 - interleaved color channels, 1 - separate color channels. cvCreateImage can only create interleaved images */ int origin; /* 0 - top-left

surface feature detection on image processing

*爱你&永不变心* 提交于 2019-12-25 17:20:10
问题 An example of detectSURFFeatures in comparison of 2 image is in below. I couldn't make detectSURFFeatures function work in my MATLAB. no help or doc detectSURFFeatures gives any clue. the error says " > UncalibratedSterio Undefined function 'detectSURFFeatures' for input arguments of type 'uint8'." but the function itself can cover uint8 as i know. what should i do? %Rectified Sterio Image Uncalibrated % There is no calibration of cameras I1 = rgb2gray(imread('right_me.jpg')); I2 = rgb2gray