FGSCalib: Targetless Camera-LiDAR Extrinsic Calibration from Foreground Segmentation

Marcell Kégl, Csaba BenedekarXiv 2026

Imagine you’ve just spent a long day setting up a sophisticated sensor rig on a busy street corner. You’ve got a high-resolution camera and a state-of-the-art LiDAR sensor working in tandem to monitor traffic. But there’s a catch: for the data to make sense, the computer needs to know exactly how the camera is positioned relative to the LiDAR. This is "extrinsic calibration," and usually, it involves a technician waving a checkerboard target in front of the sensors while the whole system is offline.

Now imagine if the system could just... figure it out by watching the cars go by. That is the promise of FGSCalib.

TL;DR

FGSCalib is a "set it and forget it" calibration tool for stationary camera-LiDAR pairs. Instead of requiring manual targets or sensor motion, it uses the natural movement of objects in the scene—pedestrians, cars, even a stray dog—to align the two sensors automatically. By turning moving foreground masks into a smooth "proximity field," it finds the perfect spatial alignment without needing a human in the loop.

What Problem Does This Paper Address?

In the world of "Smart Infrastructure," sensors are often bolted to poles and left to run for years. Over time, vibrations, thermal expansion, or a particularly aggressive bird can cause the sensors to shift slightly. Even a tiny misalignment means the LiDAR's 3D points won't line up with the camera's pixels, rendering the fused data useless.

Most existing calibration methods fall into two camps:

  1. Target-based: Highly accurate but require a human to bring a physical target to the site, taking the system out of service.
  2. Targetless (Ego-motion): These work great for self-driving cars because the sensor itself is moving, allowing it to map the static environment. But for a stationary sensor on a pole looking at a flat wall, these methods often have nothing to "grab onto."

FGSCalib fills the gap for stationary sensors by treating the moving world as a signal rather than noise.

Methods

The pipeline for FGSCalib is an elegant four-step dance:

  1. Foreground Segmentation: The system identifies "moving stuff" in both the camera images and the LiDAR point clouds. Crucially, it doesn't care what the objects are—it just needs to know they are moving.
  2. The Boundary-Proximity Field: This is the "secret sauce." A simple binary mask (white for object, black for background) is too "sharp" for optimization algorithms; if you're off by one pixel, the error signal vanishes. The authors convert the camera mask into a smooth gradient field.
  3. Insight: They use a "component-aware" radius. A giant truck creates a wide field of attraction, while a tiny bit of sensor noise creates a very small one. This prevents the calibration from being "distracted" by small errors.
  4. Diversity-Aware Frame-Pair Selection (DFPS): You don't need every frame of a 10-minute video. FGSCalib picks a subset of frames where objects appear at different depths and positions, ensuring the optimization has a diverse set of constraints to work with.
  5. Two-Stage Simulated Annealing: To find the best rotation and translation, the system uses simulated annealing—a probabilistic technique for finding the global optimum in a complex "landscape" of possibilities. It starts with a broad search and then zooms in for a refined fit.
Fig. 1. FGSCalib pipeline. (a) A stationary camera–LiDAR rig records moving objects. (b) Foreground is segmented in both sensors without object classes: a binary camera mask and a set of LiDAR foreground points. (c) The camera mask is converted into the boundary-proximity field. (d) Frame pairs are chosen by diversity-aware frame-pair selection (DFPS) and the extrinsic is searched by simulated annealing in two stages, a broad search and a refinement. (e) LiDAR foreground points projected into the image before and after calibration.

Datasets

The authors didn't just test this in a lab; they built a comprehensive benchmark:

  • Simulated Data: 21 scenarios created in the CARLA simulator (a high-fidelity urban driving environment) to provide perfect "ground truth" for testing.
  • Real-World Data: 72 scenarios using a custom-built rig with three different LiDAR types (including the tricky "non-repetitive" Livox) and three different cameras. They recorded in diverse settings like narrow corridors, busy squares, and staircases.
  • Manual Reference: To evaluate real-world performance, they averaged 43 independent manual calibrations to create a highly reliable "gold standard" reference.

Key Insights and Ideas

  • Motion as a Calibration Target: By focusing on the change in the scene, the method works even if the background is a featureless white wall.
  • Scaling the Attraction: The idea that the "influence" of a foreground object should scale with its size (Figure 2) is a clever way to handle the messy reality of background subtraction, where small artifacts are common.
Fig. 2. The boundary-proximity field (white: 1, black: 0). (a) An illustrative mask with one large and several small components. (b) Its field: linear inside, logarithmic outside up to the component-aware radius of Eq. (3), which gives small components thin rings. (c) The field for one frame of a real indoor recording (ZED 2i–Livox), over the dimmed camera image. (d) The same frame with the LiDAR foreground points projected with the FGSCalib estimate; the inset enlarges the object.
  • Class-Agnosticism: Because it doesn't rely on pre-trained "car" or "person" detectors, it’s robust. It will calibrate just as well using a passing cyclist as it would a robot vacuum.

Key Results

FGSCalib holds its own against the "gold standard" of manual calibration:

  • Accuracy: In simulations, it achieved a median error of just 5.3 cm and 0.19°.
  • Real-World Reliability: On real data, it met a strict "tolerance" (the level of agreement between human experts) in 51 out of 72 scenarios.
  • Robustness: It significantly outperformed five other state-of-the-art targetless baselines, many of which failed entirely on stationary RMB (rotating) LiDAR data.
  • No "Good Guess" Needed: The system can find the correct calibration even if it starts from a random, "bad" initial guess within a reasonable box.

Limitations and Future Work

While powerful, FGSCalib isn't magic.

  • It Needs Action: If the scene is perfectly still (e.g., a deserted street at 3 AM), there is no signal to use. In those cases, static-scene methods are still required.
  • Computational Cost: A full calibration takes about an hour on a standard desktop CPU. While fine for periodic maintenance, it's not "real-time."
  • Systematic Bias: The authors noted a slight bias where the LiDAR is placed a few centimeters further from the camera than in manual sessions—a quirk they hope to address in future cost-function designs.

In short, FGSCalib turns the "chaos" of a moving city into a precision tool, ensuring our infrastructure stays sharp without ever needing to stop the clock.

Summary updated

Abstract

Camera-LiDAR pairs installed as fixed infrastructure need periodic recalibration, but a calibration target takes the installation out of service. We present FGSCalib, a targetless method that calibrates a stationary camera-LiDAR pair from the objects moving in its view. We only assume that arbitrary moving objects are present in the scene: each sensor separates the moving foreground from the static background, without relying on object classes. With the correct extrinsic, the LiDAR foreground points project onto the camera foreground. FGSCalib turns the camera mask into a boundary-proximity field and finds the extrinsic by two-stage simulated annealing over selected frame pairs. It needs no measured initial extrinsic (random starts give similar results) and works with both rotating and non-repetitive LiDARs. We evaluate it on 21 simulated scenarios with exact ground truth and on 72 real ones (nine camera-LiDAR pairs in eight scenes), with a reference averaged from 43 manual calibrations. In simulation the median error is 5.3 cm and 0.19°. On real data we use a tolerance of 18 cm and 1.8°, met by 93% of single manual calibrations. Keeping the lowest-cost of five runs, FGSCalib meets it in 51 of the 72 scenarios: in 20 of 24 with the Livox, where the strongest of five baselines reaches 11, and in 31 of 48 with the two rotating LiDARs, where only one baseline estimate does. Its median error is 9.5 cm and 0.9°, against 7.3 cm and 0.7° for a single manual calibration. The code and the dataset are available online.
BibTeX
@misc{kegl2026fgscalib,
  author = {Marcell Kégl and Csaba Benedek},
  title = {{FGSCalib: Targetless Camera-LiDAR Extrinsic Calibration from Foreground Segmentation}},
  year = {2026},
  eprint = {2611.30935},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30935},
}
Figure