point-cloud-library

PCL: Visualise a point cloud

谁说胖子不能爱 提交于 2019-12-04 02:30:14
I'm trying to visualise point cloud using PCL CloudViewer. The problem is that I'm quite new to C++ and I have found two tutorials first demonstrating the creation of PointCloud and second demonstration the visualisation of a PointCloud. However, I'm not able to combine these two tutorials. Here is what I come with: #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/visualization/cloud_viewer.h> int main (int argc, char** argv) { pcl::PointCloud<pcl::PointXYZ> cloud; // Fill in the cloud data cloud.width = 5; cloud.height = 1; cloud.is_dense = false;

Integral Image normal estimation from kinect depth image

China☆狼群 提交于 2019-12-03 21:15:59
I am doing the following to try and estimate surface normals from a point cloud generated from a Kinect depth image: pcl::PointCloud<pcl::PointXYZRGB>::Ptr create_point_cloud_ptr(Mat& depthImage, Mat& rgbImage){ pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZRGB>()); cloud->width = depthImage.rows; //Dimensions must be initialized to use 2-D indexing cloud->height = depthImage.cols; cloud->resize(cloud->width*cloud->height); int min_depth = INT_MAX; int num_of_points_added = 0; for(int v=0; v< depthImage.rows; v++){ //2-D indexing for(int u=0; u< depthImage.cols;

Set-to-Subset point cloud matching

[亡魂溺海] 提交于 2019-12-03 21:11:03
I have two point clouds, in 3d coordinates. One is a subset of the other, containing many less points. They are in the same scale. What i need to do is find the translation and rotation between the two. I have looked at Point cloud Library, "Iterative closest point" , and Coherent Point Drift , but these matching approaches both seem to expect the two point sets to contain mostly the same points, not have one be a smaller, subset of the other. Can i use either of these, with adjustments? Or is there another algorithm to match a subset point cloud to a set? Thank you. Without having access to

Compiling PCL 1.7 on Ubuntu 16.04 , errors in CMake generated Makefile

谁说胖子不能爱 提交于 2019-12-03 16:58:33
问题 I'm trying to get PCL 1.7 (The point cloud library, not the other pcl) working on Ubuntu 16.04. I eventually hope to use for C++ stuff, but right now I'm just trying to get the examples working. I'm using the default compilers that came with Ubuntu (GNU 5.3.1), and Cmake version 3.5.2. I've been following the directions on PCL's website (here and here), but am currently stuck at the point where I use the 'make' command after letting Cmake build the things it wants to build. This is the error

Compiling PCL 1.7 on Ubuntu 16.04 , errors in CMake generated Makefile

半城伤御伤魂 提交于 2019-12-03 06:06:54
I'm trying to get PCL 1.7 (The point cloud library, not the other pcl) working on Ubuntu 16.04. I eventually hope to use for C++ stuff, but right now I'm just trying to get the examples working. I'm using the default compilers that came with Ubuntu (GNU 5.3.1), and Cmake version 3.5.2. I've been following the directions on PCL's website ( here and here ), but am currently stuck at the point where I use the 'make' command after letting Cmake build the things it wants to build. This is the error I get [ 50%] Building CXX object CMakeFiles/pcd_write.dir/pcd_write.cpp.o <command-line>:0:15:

Generating point cloud from many 2d images

眉间皱痕 提交于 2019-12-03 03:59:19
问题 From my, somewhat limited, understanding of how point clouds work I feel that one should be able to generate a point cloud from a set of 2d images from around the outside of an object. The problem that I am experiencing is that I can not seem to find any examples of how to generate such a point cloud. 回答1: In general, 3D shaped reconstruction from a sequence of 2D images is a hard problem. It can range from difficult to extremely difficult, depending on the amount of information that is known

C++ plane interpolation from a set of points

百般思念 提交于 2019-12-03 00:05:22
问题 I am programming in C++ with the PCL, point cloud, library. My problem is: computing the variance of some of the points but only with respect to the perpendicular axis with respect to the plane. I will explain myself: So what I am doing is dividing the point cloud into segments by surface smoothness (with region growing segmentation). For each segment I would like to have a measurement of how accurate the surface is, and I thougth the best way was to compute the plane that best fits the

viewing 3D point cloud using APIs by Open source PCL

落爺英雄遲暮 提交于 2019-12-02 23:04:37
问题 I use a ToF (Time of Flight) camera to obtain depth data in XYZ format. For visualization purpose as a 3D point cloud, I want to use the APIs provided by open source PCL mentioned at http://pointclouds.org/documentation/tutorials/pcl_visualizer.php What is a good starter tutoarial example (.cpp) file to look at in order to construct a point cloud GUI running in a separate display thread ? 回答1: Looks like you're not linking the PCL visualization lib file and probably others. Do this in the

Point Cloud Library, robust registration of two point clouds

℡╲_俬逩灬. 提交于 2019-12-02 14:57:55
I need to find the transformation and rotation difference between two 3d point clouds. For this I am looking at PCL, as it seems ideal. On clean test data I have Iterative closest point working, but giving strange results(although I may have implemented it incorrectly...) I have pcl::estimateRigidTransformation working, and it seems better, although I assume will deal worse with noisy data. My question is: The two clouds will be noisy, and although they should contain the same points, there will be some discrepancies. What is the best way to deal with this? Should I find corresponding features

pcl_visualizer.h - fatal error LNK1120: 1 unresolved externals

╄→尐↘猪︶ㄣ 提交于 2019-12-02 09:45:40
error LNK2001: unresolved external symbol "public: virtual void __cdecl pcl::visualization::PCLVisualizer::FPSCallback::Execute(class vtkObject *,unsigned long,void *)" (?Execute@FPSCallback@PCLVisualizer@visualization@pcl@@UEAAXPEAVvtkObject@@KPEAX@Z) 1>C:\Users\hatea\Documents\Visual Studio 2015\Projects\PCLTester\x64\Debug\PCLTester.dll : fatal error LNK1120: 1 unresolved externals I have thoroughly exhausted all avenues dealing with this issue. I checked here, and I found a similar question/answer series: error LNK2001 when including "pcl_visualizer.h" The problem is that I do not want to