From 0d57c6b89e13e3aae8c4b8006794b5e2907456e1 Mon Sep 17 00:00:00 2001 From: shimat Date: Fri, 19 Jun 2026 13:49:06 +0900 Subject: [PATCH] Add missing SolvePnPMethod enum values (AP3P, IPPE, IPPE_SQUARE, SQPNP) Add the 4 values defined in OpenCV calib3d.hpp that were missing from the SolvePnPMethod enum: AP3P=5, IPPE=6, IPPE_SQUARE=7, SQPNP=8. Fixes #1895 Co-Authored-By: Claude Opus 4.8 --- .../Modules/calib3d/Enum/SolvePnPFlags.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/OpenCvSharp/Modules/calib3d/Enum/SolvePnPFlags.cs b/src/OpenCvSharp/Modules/calib3d/Enum/SolvePnPFlags.cs index 8324414bfe..92fac9f6c3 100644 --- a/src/OpenCvSharp/Modules/calib3d/Enum/SolvePnPFlags.cs +++ b/src/OpenCvSharp/Modules/calib3d/Enum/SolvePnPFlags.cs @@ -33,6 +33,27 @@ public enum SolvePnPMethod /// A.Penate-Sanchez, J.Andrade-Cetto, F.Moreno-Noguer. "Exhaustive Linearization for Robust Camera Pose and Focal Length Estimation" /// UPNP = 4, + + /// + /// T. Ke, S. Roumeliotis. "An Efficient Algebraic Solution to the Perspective-Three-Point Problem" + /// + AP3P = 5, + + /// + /// Infinitesimal Plane-Based Pose Estimation. Object points must be coplanar. + /// + IPPE = 6, + + /// + /// Infinitesimal Plane-Based Pose Estimation. + /// This is a special case suitable for marker pose estimation. 4 coplanar object points must be defined. + /// + IPPE_SQUARE = 7, + + /// + /// G. Terzakis, M. Lourakis. "A Consistently Fast and Globally Optimal Solution to the Perspective-n-Point Problem" + /// + SQPNP = 8, } ///