Jim Ostrowski | cb8b408 | 2024-01-21 02:23:46 -0800 | [diff] [blame^] | 1 | #ifndef FRC971_VISION_VISION_UTIL_LIB_H_ |
| 2 | #define FRC971_VISION_VISION_UTIL_LIB_H_ |
| 3 | #include <optional> |
| 4 | #include <string_view> |
| 5 | |
| 6 | #include "opencv2/imgproc.hpp" |
| 7 | |
| 8 | #include "frc971/vision/calibration_generated.h" |
| 9 | |
| 10 | namespace frc971::vision { |
| 11 | std::optional<cv::Mat> CameraExtrinsics( |
| 12 | const frc971::vision::calibration::CameraCalibration *camera_calibration); |
| 13 | |
| 14 | cv::Mat CameraIntrinsics( |
| 15 | const frc971::vision::calibration::CameraCalibration *camera_calibration); |
| 16 | |
| 17 | cv::Mat CameraDistCoeffs( |
| 18 | const frc971::vision::calibration::CameraCalibration *camera_calibration); |
| 19 | |
| 20 | } // namespace frc971::vision |
| 21 | |
| 22 | #endif // FRC971_VISION_VISION_UTIL_LIB_H_ |