How rameau-fr/mc-calib works
Main Components
• Calibration Core: Represented by the C++ library in the “McCalib” folder. This includes header and source files that define classes for boards, cameras, graphs, and 3D objects. Emphasize that the calibration algorithms rely on external libraries such as Ceres, OpenCV, and Boost.
• Applications: There are two main apps:
• “calibrate” (in apps/calibrate): Uses the calibration core to process image sequences and perform calibration.
• “create_charuco_boards” (in apps/create_charuco_boards): Generates Charuco board images.
• Configuration & Data Management:
• “configs” contains YAML configuration files that set up calibration parameters (camera properties, board details, image paths, etc.).
• “data” is used to store calibration images.
• Post-Calibration Analysis: The “python_utils” directory includes Python scripts for analyzing the results (computing errors, visualizing camera/object poses, etc.).
• Testing & Documentation: The “tests” folder includes unit and integration testing, while “docs” contains various documentation resources (Docker, contribution guides, and Doxygen documentation).
• Deployment & Container Support: Docker-related files (.dockerignore, Dockerfile, GitHub workflows) indicate that containerized builds and deployments are supported.
Relationships and Data Flow
• Detect calibration boards,
• Compute camera intrinsics & extrinsics,
• Validate correspondence of 2D–3D points.
• Output Flow: The outputs (calibrated cameras, object 3D structure, poses, and reprojection error logs in YAML format) are produced and then optionally passed to Python utilities for post-calibration analysis.
• Build and Deployment: Show the build process using CMake (from CMakeLists.txt at the root and in subdirectories) and Docker container deployment. Represent the CI/CD pipeline node linked from the .github/workflows directory.
Architectural Patterns and Design Principles
• Layer Separation: Separate the system into logical layers:
• Application Layer (apps and Python utilities),
• Core Calibration Library (McCalib),
• Data/Configuration Input,
• Testing/Documentation/Deployment.
• Modular Design: The clear separation into directories (core library, dedicated apps, python scripts, tests) signifies a modular architecture. Indicate modularity by grouping related files.
Relevant Technologies & Frameworks
• C++17 is used for the main codebase (observed from CMakeLists.txt and code structure).
• External libraries include Ceres (for non-linear optimization), OpenCV (for image processing), and Boost.
• Docker is used for containerized development and production deployment.
• Python utilities use libraries (likely NumPy, OpenCV-Python) for statistical post-analysis.
• GitHub Actions are used for CI based on the workflows described.
Essential Elements
• Each component should be clearly labeled (e.g., “Calibration Core,” “Calibrate App,” “Charuco Board Generator,” “Configuration,” “Data,” “Python Analysis,” “CI/CD Pipeline,” “Documentation & Tests”).
• Configuration & Data inputs → Applications → Core Processing → Output Files.
• Output Files → Python Utilities Analysis.
• Build/CI pipeline (from repository and Docker environment) → Deployment.
• Rectangles for applications,
• Clouds for external services (Docker, CI/CD).
• To the main processing module (“Calibration Core”) and then branch out into the dedicated apps (calibrate, board generator).
• Supporting infrastructure (build system, containerization, testing workflows) on a side channel.