point-clouds

Reading .las version 1.3 using C++, and displaying the results using pcl library

雨燕双飞 提交于 2021-02-08 09:37:25
问题 I'm fairly new to the Point Cloud world. In addition, I'm not so experienced in C++. I need to read .las files and process them using the pcl library. This is a sample file from the dataset that I need to read. I followed this youtube video. However, since the file I'm trying to read is of version 1.3, I followed the corresponding spec file to define the header fields and I used 'Data Record Format 3' which is the data record format mentioned in the file header. This are my definitions for

PCD Sample Data

核能气质少年 提交于 2021-02-07 19:56:54
问题 I am looking for sample point cloud scenes to work with but unable to find any free sample PCD data apart from the PCL Documentation with a few files. Any source when I can find free PCD files to work with? I am mainly working on ground and pedestrian recognition. 回答1: Check the Community Data Repositories links on this page http://pointclouds.org/media/ 来源: https://stackoverflow.com/questions/45300181/pcd-sample-data

PCD Sample Data

点点圈 提交于 2021-02-07 19:55:25
问题 I am looking for sample point cloud scenes to work with but unable to find any free sample PCD data apart from the PCL Documentation with a few files. Any source when I can find free PCD files to work with? I am mainly working on ground and pedestrian recognition. 回答1: Check the Community Data Repositories links on this page http://pointclouds.org/media/ 来源: https://stackoverflow.com/questions/45300181/pcd-sample-data

Convert XYZ point cloud to grayscale image

淺唱寂寞╮ 提交于 2021-02-04 14:13:12
问题 Everyone I'm trying to convert point cloud (X, Y, Z) to the grayscale image using python. I learned that the grayscale image could be generated by a Numpy array. But what I have now is a set of points which contains X, Y and height. I wanna generate a grayscale image based on X, Y and grayscale value which is Height. Can someone give me an idea about this? Thanks beforehand. Rowen 回答1: let's assume that the X,Y are arranged so they will form a grid (which is mandatory in order to build a

Removing point clouds inside a given box

拜拜、爱过 提交于 2021-01-29 20:00:52
问题 I would like to implement a code where I can remove certain points of the point clouds inside a given box. This is what I have so far: void removePoints(){ pcl::CropBox<pcl::PointXYZI> boxFilter; float x_min = -0.15, y_min = -0.5, z_min = -0.7; float x_max = +1, y_max = +2, z_max = +5; boxFilter.setMin(Eigen::Vector4f(x_min, y_min, z_min, 1.0)); boxFilter.setMax(Eigen::Vector4f(x_max, y_max, z_max, 1.0)); boxFilter.setInputCloud(cloud); boxFilter.filter(*newCloud); viewer-

Unable to initialize point cloud - ORA-13249: Error creating dml trigger

冷暖自知 提交于 2021-01-28 15:59:12
问题 I'm unable to initialize point cloud in Oracle Database 12c. Trying to execute following commands: CREATE TABLE point_clouds( id NUMBER, capture_ts TIMESTAMP, point_cloud SDO_PC ); CREATE TABLE pc_blocks AS select * from mdsys.sdo_pc_blk_table; INSERT INTO point_clouds (id, point_cloud) VALUES ( 1001, sdo_pc_pkg.init( basetable => 'point_clouds', basecol => 'point_cloud', blktable => 'pc_blocks', ptn_params => 'blk_capacity=10000', pc_extent => mdsys.sdo_geometry( 2003, 8307, null, mdsys.sdo

CGAL draw function is giving 'CGAL_USE_BASIC_VIEWER is not defined' error in Visual Studio

做~自己de王妃 提交于 2021-01-28 08:40:28
问题 I am trying to generate mesh and 3D object from point cloud. I have searched lots of libraries and I decided to use CGAL. I followed this youtube tutorial. Due to the fact that I want to see the objects, I need to use Qt5 library (as mentioned here) and I downloaded it. And it worked as in tutorial. Libraries and applications I've used CMake 3.15.3 CGAL-4.13.1 Qt 5.13.0 Boost 1_71_0 The problem is that when I call the CGAL::draw() function it gives me this error Impossible to draw because

Converting vector<Point3d> to a Mat of size (n x 3) and vice versa

馋奶兔 提交于 2021-01-27 19:32:51
问题 I have point clouds in the form of a vector of Point3d (vector). If I use the conversion provided by OpenCV, like cv::Mat tmpMat = cv::Mat(pts) //Here pts is vector<cv::Point3d> It gets converted into a Matrix with 3 channels. I want a single channel matrix with the dimensions nx3 (n - the number of elements in the vector). Is there any direct method to convert a vector of Point3d into an OpenCV Mat of size nx3? Now I'm doing cv::Mat1f tmpMat = cv::Mat::zeros(pts.size(), 3, cv::CV_32FC1); for

Finding points within a bounding box with numpy

萝らか妹 提交于 2021-01-27 07:50:41
问题 I have millions of xyz-coordinates from multiple point cloud files which I am storing inside a 2-dimensional numpy array: [[x1, y1, z1], [x2, y2, z2],..., [xn, yn, zn]] . I want to filter all the points which are inside a specific bounding box described by 4 coordinates [[x1, y1], [x2, y2]] i.e. the lower left and upper right coordinates of a rectangle. I have already found the following piece of code to filter coordinates with numpy and it's almost what I want. The only difference is (if I'm

Finding points within a bounding box with numpy

别来无恙 提交于 2021-01-27 07:50:21
问题 I have millions of xyz-coordinates from multiple point cloud files which I am storing inside a 2-dimensional numpy array: [[x1, y1, z1], [x2, y2, z2],..., [xn, yn, zn]] . I want to filter all the points which are inside a specific bounding box described by 4 coordinates [[x1, y1], [x2, y2]] i.e. the lower left and upper right coordinates of a rectangle. I have already found the following piece of code to filter coordinates with numpy and it's almost what I want. The only difference is (if I'm