Coordinate system changed after interactive segmentation

Feel free to ask any question here
Post Reply
pixelpress
Posts: 2
Joined: Wed Aug 28, 2019 4:56 pm

Coordinate system changed after interactive segmentation

Post by pixelpress »

Hi there,

I'm new to CloudCompare and not really sure what I'm doing wrong. I'm using the interactive segmentation tool on a pointcloud as described https://www.cloudcompare.org/doc/wiki/i ... ation_Tool. However, when I save my segmentation as a new .pcd file, I end up in a different coordinate system or the points are somehow changed. You can see it on the visualization:
Screenshot from 2019-08-28 19-03-20.png
Screenshot from 2019-08-28 19-03-20.png (40.51 KiB) Viewed 1263 times
Pink is the original pointcloud, green is the segmentation and red is the remaining cloud.

So why are they not aligned anymore?


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

Re: Coordinate system changed after interactive segmentation

Post by daniel »

That's odd. It looks as if two dimensions were swapped? Like X and Y for instance... Does it happen when you re-load the PCD files in CC or when you load them in another tool?
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Coordinate system changed after interactive segmentation

Post by daniel »

That's odd. It looks as if two dimensions were swapped? Like X and Y for instance... Does it happen when you re-load the PCD files in CC or when you load them in another tool?
Daniel, CloudCompare admin
pixelpress
Posts: 2
Joined: Wed Aug 28, 2019 4:56 pm

Re: Coordinate system changed after interactive segmentation

Post by pixelpress »

daniel wrote: Wed Aug 28, 2019 8:26 pm That's odd. It looks as if two dimensions were swapped? Like X and Y for instance... Does it happen when you re-load the PCD files in CC or when you load them in another tool?
Exactly, the axes are somehow changed in CC. I realized it's independent of the segmentation step. When I save it as .pcd in CC and reload it in PCL, the model is rotated.

This is how the header is changed after saving it in CC (left: original, right: CC):
Screenshot from 2019-08-29 10-18-40.png
Screenshot from 2019-08-29 10-18-40.png (45.91 KiB) Viewed 1230 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Coordinate system changed after interactive segmentation

Post by daniel »

Can you send me the file then? (to admin[at]cloudcompare.org). I can't reproduce this on my side, I guess it comes from something in the original file?
Daniel, CloudCompare admin
Post Reply