davidcaron / pye57

Read and write e57 point clouds from Python
MIT License
68 stars 42 forks source link

Apply transformation to an e57 file #60

Open dancergraham opened 4 months ago

dancergraham commented 4 months ago

copied from https://laserscanningforum.com/forum/viewtopic.php?f=43&t=21442

Hey all,

I have a point cloud in e57 format and am looking for a way to efficiently apply a transformation (via rotation matrix and translation). Im playing around with the pye57 package and am aware of the header section in the e57 file format. There is a node called 'pose' which potentially could be modified to apply the transformation without having to read the whole point cloud, but I cant seem to figure out away to actually modify these nodes as they seem to be read only.

Do you have any tips on that? Is there a was to modify those nodes? (in the pye57 description they talk about modifying them, but it doesnt work for me) And what would be the syntax for that?

Thank you very much, Stefan

swell-d commented 2 weeks ago

You can create a new e57, copy the points into it, and spell out the necessary header.