Scaling Point Clouds

Feel free to ask any question here
Post Reply
mberthau
Posts: 4
Joined: Tue Feb 12, 2013 11:35 pm

Scaling Point Clouds

Post by mberthau »

Hi all,

I was wondering if there was a way to scale point clouds in cloud compare?

For instance, if I had two objects that were roughly the same shape (i.e. spheres) but different sizes, is it possible to scale the smaller object to the larger one or vice versa so I could then align the two point clouds and see how different they are?

Thanks
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scaling Point Clouds

Post by daniel »

Indeed,

Look at the "Edit > Multiply\Scale" tool (you can scale each dimension separately).
Daniel, CloudCompare admin
mberthau
Posts: 4
Joined: Tue Feb 12, 2013 11:35 pm

Re: Scaling Point Clouds

Post by mberthau »

Awesome, thanks so much!
reza_mtn2001
Posts: 8
Joined: Thu Oct 23, 2014 12:08 am

Re: Scaling Point Clouds

Post by reza_mtn2001 »

Daniel, I have one question related to scaling as well. I saw that there is a good tool in CC for scaling a point cloud. I need only to set fx, fy, fz and then my point cloud is scaled to larger size or smaller size. I need to know that this functionality works according to voxel grid in PCL? or other kind of function is used? I ask this question since I want to change the scale of my point cloud by using PCL. and CC does it beautifully but I need do it inside of my code and I shouldn't scale it in CC and then use it in my code.


best regards,
Reza
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scaling Point Clouds

Post by daniel »

No need to use PCV here, as we simply multiply the coordinates by fx, fy and fz (i.e. a simple loop on the points).

By the way, the standard version of CC is totally independent on PCL. Only the qPCL plugin uses PCL.
Daniel, CloudCompare admin
reza_mtn2001
Posts: 8
Joined: Thu Oct 23, 2014 12:08 am

Re: Scaling Point Clouds

Post by reza_mtn2001 »

Thx for your straight-forward answer Daniel. So it means that we simply multiply the coordinates of each points in scale value, that's it. is that true??

Best,
Reza
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scaling Point Clouds

Post by daniel »

If we both speak of the 'Edit > Multiply / Scale' method then yes!
Daniel, CloudCompare admin
reza_mtn2001
Posts: 8
Joined: Thu Oct 23, 2014 12:08 am

Re: Scaling Point Clouds

Post by reza_mtn2001 »

yes! THX got it :)

best,
Reza
mschmidt@sandis.net
Posts: 1
Joined: Fri Apr 10, 2015 5:20 pm

Re: Scaling Point Clouds

Post by mschmidt@sandis.net »

Do you guys have any idea why the multiply scale option may be grayed out?
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scaling Point Clouds

Post by daniel »

Well it should only be enabled if one or several point clouds are selected. Maybe meshes also but I'm not sure right now.
Daniel, CloudCompare admin
Post Reply