Skip to content

camera_lidar_calibration: dropped folder loads image closest to first point time - #683

Merged
michalpelka merged 1 commit into
MapsHD:mainfrom
michalpelka:mp/calib-drop-image-folder
Dec 3, 2026
Merged

michalpelka merged 1 commit into
MapsHD:mainfrom
michalpelka:mp/calib-drop-image-folder

Conversation

@michalpelka

@michalpelka michalpelka commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Dropping a folder of images on the camera_lidar_calibration window now loads the image whose capture time is closest to the first point time of the loaded clouds. Before, a dropped folder was rejected as "Unsupported dropped file".
  • Folders in a drop are handled after the .laz/.las files dropped with them, so the cloud and the image folder can be dropped together. Pairs files still go last.
  • The status line shows the offset, e.g. 1234.jpg is +0.012 s from the first point of the clouds' 10.3 s. If no cloud with point times is loaded, or no image in the folder has a timestamp, the current image stays and the status line says why.
  • --closest_to_laz is unchanged: it still matches the middle of the point times. Both paths share AppState::loadImageClosestToCloudTime, which now takes a CloudTimeRef (First / Middle, default Middle).

User-visible change

New drag & drop behaviour for folders. No existing options or outputs change.

Test plan

  • Builds on Linux, clang-format clean
  • Drop a folder of timestamped images after loading a cloud (Windows, Linux, macOS)
  • Drop a cloud and an image folder together

🤖 Generated with Claude Code

… point time

Dropping a folder of images on the window loads the image whose capture
time is closest to the earliest point time of the loaded clouds. Folders
are handled after clouds dropped in the same batch. --closest_to_laz keeps
matching the middle of the point times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michalpelka
michalpelka merged commit 7015744 into MapsHD:main Dec 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant