point-clouds

How to fit a cylinder to scattered 3D XYZ point data in MATLAB?

北城以北 提交于 2019-12-11 00:28:13
问题 I was wondering if it was possible for someone to provide me with some code examples for working with scattered XYZ point data in MATLAB Curve Fitting Toolbox? I would like to fit a surface to points that approximate a cylinder. Thanks. 回答1: In Matlab R2015b and above, You can use pcfitcylinder to fit a cylinder to a pointCloud object. Let's start with producing an example data to see how it works: [theta, r, h] = meshgrid(0:.1:6.28, 1, 0:.2:4); % making a cylinder r = r + 0.05 * randn(size(r

How to tell what units a point cloud is in?

允我心安 提交于 2019-12-11 00:19:30
问题 I am using a dataset of point cloud files created from Kinect images. Is there a way to know what units the axis are in, i.e. for a point (0.003, 0.004, 0.04) is this meters, centimeters etc.? I am trying to estimate surface normals from local patches using the setRadiusSearch method in pcl but this allows us to specify a radius in meters, so I need to know the units of the point cloud. 回答1: The axis in your viewer is whatever units you want it to be. You have to know or infer the actual

How to efficiently get 10% of random numbers, then 10% of remaining 90 etc untill all points allocated

落花浮王杯 提交于 2019-12-11 00:16:58
问题 This is what I want to do : I have 300 000 points. I want 10% of the points. I then want 10% of the remaining 90% of points. I then want 10% of the remaining 81% of points I then want 10% of the remaining 73% of points etc until i'm finished with all the points. Is this the fastest way of doing it: #all the points s = np.arange(len(c_list)) np.random.shuffle(s) #first 10% s1 = np.arange(len(c_list)*10/100) np.random.shuffle(s1) k = s1 while len(k)<len(s) : r = [x for x in s if x not in k]#get

How to call glPointSize() (or the SceneKit equivalent) when making custom geometries using SceneKit and SCNGeometryPrimitiveTypePoint

杀马特。学长 韩版系。学妹 提交于 2019-12-10 17:54:25
问题 I'm writing an iOS app that renders a pointcloud in SceneKit using a custom geometry. This post was super helpful in getting me there (though I translated this to Objective-C), as was David Rönnqvist's book 3D Graphics with SceneKit (see chapter on custom geometries). The code works fine, but I'd like to make the points render at a larger point size - at the moment the points are super tiny. According to the OpenGL docs, you can do this by calling glPointSize() . From what I understand,

Convert points on a 3d Plane to 2d Coordinates

杀马特。学长 韩版系。学妹 提交于 2019-12-10 14:55:08
问题 I have a point cloud, all the points lie on a plane in 3D Space. I need to convert each point to 2D Coordinates and vice versa. (x,y,z) in Coordinate System A => Transformation Matrix ( T1 ) => (x,y) in Coordinate System B (x,y) in Coordinate System B => Transformation Matrix ( T2 ) => (x,y,z) in Coordinate System A I need T1 and T2 . The coordinate system B can be any arbitrary reference frame. 回答1: As far as I understand, all points lie in the same plane, and you want to reduce dimension

Checking point coordinates in PCLVisualizer

回眸只為那壹抹淺笑 提交于 2019-12-10 09:38:54
问题 How can I check specific point coordinates in PCLVisualizer? There are no information regarding this topic in help: | Help: ------- p, P : switch to a point-based representation w, W : switch to a wireframe-based representation (where available) s, S : switch to a surface-based representation (where available) j, J : take a .PNG snapshot of the current window view c, C : display current camera/window parameters f, F : fly to point mode e, E : exit the interactor q, Q : stop and call VTK's

Generate and export point cloud from Project Tango

流过昼夜 提交于 2019-12-08 07:18:54
问题 After some weeks of waiting I finally have my Project Tango. My idea is to create an app that generates a point cloud of my room and exports this to .xyz data. I'll then use the .xyz file to show the point cloud in a browser! I started off by compiling and adjusting the point cloud example that's on Google's github. Right now I use the onXyzIjAvailable(TangoXyzIjData tangoXyzIjData) to get a frame of x y and z values; the points. I then save these frames in a PCLManager in the form of Vector3

Rectangle Detection in PCL

大憨熊 提交于 2019-12-08 05:08:19
问题 How do I perform rectangle-fitting in PCL? PCL allows RANSAC for a limited set of models (sphere, cylinder, etc) but not for rectangles. Is there a way to do rectangle-fitting with PCL's RANSAC or perhaps another PCL module? 来源: https://stackoverflow.com/questions/54100897/rectangle-detection-in-pcl

Removing points from a pcl::PointCloud<pcl::PointXYZRGB>

丶灬走出姿态 提交于 2019-12-08 04:28:18
问题 I'm new in PCL. I'm using the PCL library and I'm looking for a way to extract points from a point cloud or copying particular points to a new one. I want to verify for each point if it respects a condition and I want to obtain a point cloud with only the good points.Thank you! 回答1: Use the ExtractIndices class: add your points to be removed to a PointIndices variable pass these Indices to the ExtractIndices run filter() method "negatively" to get the original cloud minus your points example:

How do I interpolate a 2D gridded point cloud to a continuous area?

烂漫一生 提交于 2019-12-07 04:29:16
问题 I have a 2 dimensional Numpy NDarray filled with floats between 0 and about 8. This 2 dimensional arrays size is (1000, 1600) and there are about 1400 values, (the points in the point cloud), the remaining values are None , so matplotlib does not plot these values. You can see the plotted table in the image below. What I'd like to have is, the None-values interpolated with the values next to it to have a gradientlike heatmap. This pointcloud represents the shape of a roof and I want to