How vernierlib/vernier works
Vernier is a C++ library for subpixel pose measurement from calibrated visual patterns. The principal workflow is to configure or load a pattern detector, provide an image, compute pattern phase information, and obtain a pose measurement; the README documents detector construction and image computation, while sampled sources show the phase-processing and layout-rendering APIs. Pattern families provide distinct detection and layout capabilities. The graph also includes the documented optional CUDA backend and major vendored dependencies. Source excerpts are limited, so uncertain internal detector-to-decoder calls are omitted or marked unverified.
Main entry points: PatternDetector.hpp Pattern detector · PatternPhase.cpp Phase analysis · PatternLayout.cpp Pattern layouts · Detector.hpp Detector factory
Components 24
Pattern models
- Pattern layouts
src/PatternLayout.cpp - Periodic layouts
src/PeriodicPatternLayout.cpp - Megarena thumbnail
src/MegarenaThumbnail.cpp
Image processing
- Phase analysis
src/PatternPhase.cpp - Fourier transform
src/FourierTransform.cpp - Spectrum analysis
src/Spectrum.cpp - CUDA backend
include/PatternPhase.hpp
Detection and decoding
- Detector factory
include/Detector.hpp - Pattern detector
include/PatternDetector.hpp - Periodic patterns
src/PeriodicPatternDetector.cpp - Bitmap patterns
src/BitmapPatternDetector.cpp - HP-code patterns
src/HPCodePatternDetector.cpp - Megarena decoding
src/MegarenaPatternDetector.cpp - QR detection
src/QRCodeDetector.cpp - QR fiducials
src/QRFiducialDetector.cpp - Stamp patterns
src/StampPatternDetector.cpp
Pose and geometry
- Pose estimate
src/Pose.cpp - Phase plane
include/PhasePlane.hpp
Bundled dependencies
- RapidJSON
3rdparty/rapidjson/document.h - Eigen MAT adapter
3rdparty/eigen-matio/MatioFile.hpp - MAT file I/O
3rdparty/matio/src/matio.h - Eigen linear algebra
3rdparty/Eigen/src/Core/DenseStorage.h - GDS toolkit
3rdparty/gdstk/src/library.cpp
Other components
- Library user
Connections 20
- Library user → Detector factory: loads detector
README.md - Detector factory → Pattern detector: creates detector
- Library user → Pattern detector: provides image
README.md - Pattern detector → Phase analysis: computes phase
- Phase analysis → Fourier transform: uses transform
- Phase analysis → Spectrum analysis: uses analysis
- Pattern detector → Periodic patterns: selects detector
- Pattern detector → Bitmap patterns: selects detector
- Pattern detector → HP-code patterns: selects detector
- Pattern detector → Megarena decoding: selects detector
- Pattern detector → QR detection: selects detector
- Pattern detector → QR fiducials: selects detector
- Pattern detector → Stamp patterns: selects detector
- Phase analysis → Pose estimate: supports measurement
- Pattern layouts → GDS toolkit: exports cells
- Phase analysis → CUDA backend: selects backend
README.md - Eigen MAT adapter → MAT file I/O: uses MAT API
3rdparty/eigen-matio/MatioFile.hpp - Phase analysis → Eigen linear algebra: uses arrays
- Pattern layouts → Eigen linear algebra: uses arrays
- Phase analysis → RapidJSON: includes via common