Scale/normalize point clouds of different dimensions
See original GitHub issueHi @marcomusy,
I have two point clouds (see attached file), they are of different dimensions and in different positions (actually in principle room4 is subpart of room6 with a different design). Now I wanted to scale/normalize them so that they are both in the same range e.g. (-1,1) in all three axis and without losing the aspect ratio.
I’ve tried to use the normalize()
function but it didn’t really do what I want. Thus, I wanted to ask if there is another method which I can use, I did not find something on the documentation and scale()
doesn’t seem to do what I want.
import numpy as np
import vedo as vd
room4 = np.genfromtxt('room4.csv', delimiter=',', dtype='float')
room6 = np.genfromtxt('room6.csv', delimiter=',', dtype='float')
pcd4 = vd.pointcloud.Points(room4).normalize()
pcd6 = vd.pointcloud.Points(room6).normalize()
axes4 = vd.addons.buildAxes(pcd4, c='k')
axes6 = vd.addons.buildAxes(pcd6, c='dg')
vd.show(pcd4, pcd6, axes4, axes6, axes=4)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Three Dimensional Change Detection Using Point Clouds
We assume, that point clouds are registered (aligned in the same frame reference), can have different sources (dense image matching, laser ...
Read more >A Tutorial Review on Point Cloud Registrations - Hindawi
A point cloud as a collection of points is poised to bring about a revolution in acquiring and generating three-dimensional (3D) surface information...
Read more >PointSCNet: Point Cloud Structure and Correlation Learning ...
The DGCNN [40 ] simply concatenates the feature relationships of local sub-clouds in different dimensions, and the captured structural ...
Read more >Denoising for 3D Point Cloud Based on Regularization ... - NCBI
A point cloud obtained by stereo matching algorithm or three-dimensional (3D) scanner generally contains much complex noise, ...
Read more >Use Ground Truth to Label 3D Point Clouds
Point clouds are made up of three-dimensional (3D) visual data that consists of ... The 3D point cloud labeling job is different from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see, thanks.
I think, I will close this now.
Hi - thanks for rising the issue. I think it’s actually something useful so i’ve added it as a
vedo.base
method (for the next release):You can only keep the aspect ratio if you apply the same scaling in the 3 cartesian coordinates. If you want the origins to coincide you need to choose which axes to scale to match the target.