SCOPE is a system for satellites utilizing optical sensors (cameras) that re-calculates camera intrinsic and distortion parameters in-flight to preserve accurate measurement and ensure accurate distortion correction during image processing.
The full pipeline (dark frame, star centroiding, Levenberg-Marquardt fit) runs and recovers known calibrations from synthetic star images (./synthetic-e2e.sh). It has not yet been run on real images, and nothing downstream consumes its output yet.
Build inside the devcontainer (.devcontainer/: Ubuntu 24.04 and GCC 13, the same as CI). From the repository root:
cmake -S . -B build
cmake --build build -j 4
./build/bin/scope-test
That builds scope, the synthetic data generator scope-synth and the tests into build/bin/. The tests must run from the repository root. Configure options:
-DCMAKE_BUILD_TYPE=RelWithDebInfofor an optimized build. The default isDebug.-DSANITIZE=OFFbuilds the tests without AddressSanitizer and UndefinedBehaviorSanitizer, to run them under valgrind.-DCOVERAGE=ONinstruments the tests. Rungcovrafter them for a report inbuild/coverage/.
scope reads the star catalog bright-star-catalog.tsv, which is committed; ./download-bsc.sh fetches it again from VizieR. ./synthetic-e2e.sh runs the whole pipeline on a synthetic data set and checks the fit against the truth. CI (.github/workflows/ci.yml) runs all of that, the tests under valgrind, and cpplint --recursive src test.