point_labeler icon indicating copy to clipboard operation
point_labeler copied to clipboard

Save the divided tiles from whole scequence with overlapping scanes

Open Hao-HUST opened this issue 4 years ago • 1 comments

Hi, I noticed that the sequence is divided into different tiles on your labeling tool. Is that possible to separately save each tile with point cloud and labels?

Hao-HUST avatar Apr 27 '21 09:04 Hao-HUST

There is currently no option available for this. You can look in our code, how we achieve this using the given trajectory: https://github.com/jbehley/point_labeler/blob/35505715fe663e474f9ce749ee39e794c6bbefc2/src/widget/Viewport.cpp#L257-L410

But the process is quite simple (even though we use OpenGL to speed it up, you can replicate it in Python):

  1. Determine Tile centers and corresponding indexes of point clouds based on the trajectory. We use a simple heuristic to determine all point clouds that overlap: https://github.com/jbehley/point_labeler/blob/35505715fe663e474f9ce749ee39e794c6bbefc2/src/widget/KittiReader.cpp#L73-L172
  2. Using the indexes you can now open the point cloud files and copy the points accordingly. Depending on the center and the extent of the tile, it is possible to determine which points should go in.

I hope this helps (even though quite late now. Sorry again...)

jbehley avatar Jun 15 '21 07:06 jbehley