コード例 #1
0
ファイル: LandmarkDetector.cs プロジェクト: zjmsky/SharpFace
        public static SWIGTYPE_p_cv__Vec3d RotationMatrix2AxisAngle(SWIGTYPE_p_cv__Matx33d rotation_matrix)
        {
            SWIGTYPE_p_cv__Vec3d ret = new SWIGTYPE_p_cv__Vec3d(LandmarkDetectorPINVOKE.RotationMatrix2AxisAngle(SWIGTYPE_p_cv__Matx33d.getCPtr(rotation_matrix)), true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
ファイル: LandmarkDetector.cs プロジェクト: zjmsky/SharpFace
        public static SWIGTYPE_p_cv__Matx33d AxisAngle2RotationMatrix(SWIGTYPE_p_cv__Vec3d axis_angle)
        {
            SWIGTYPE_p_cv__Matx33d ret = new SWIGTYPE_p_cv__Matx33d(LandmarkDetectorPINVOKE.AxisAngle2RotationMatrix(SWIGTYPE_p_cv__Vec3d.getCPtr(axis_angle)), true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
ファイル: LandmarkDetector.cs プロジェクト: zjmsky/SharpFace
        public static SWIGTYPE_p_cv__Vec3d Euler2AxisAngle(SWIGTYPE_p_cv__Vec3d euler)
        {
            SWIGTYPE_p_cv__Vec3d ret = new SWIGTYPE_p_cv__Vec3d(LandmarkDetectorPINVOKE.Euler2AxisAngle(SWIGTYPE_p_cv__Vec3d.getCPtr(euler)), true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
ファイル: PDM.cs プロジェクト: zjmsky/SharpFace
 public void CalcParams(SWIGTYPE_p_cv__Vec6d out_params_global, SWIGTYPE_p_cv__Mat_T_double_t out_params_local, SWIGTYPE_p_cv__Mat_T_double_t landmark_locations, SWIGTYPE_p_cv__Vec3d rotation)
 {
     LandmarkDetectorPINVOKE.PDM_CalcParams__SWIG_2(swigCPtr, SWIGTYPE_p_cv__Vec6d.getCPtr(out_params_global), SWIGTYPE_p_cv__Mat_T_double_t.getCPtr(out_params_local), SWIGTYPE_p_cv__Mat_T_double_t.getCPtr(landmark_locations), SWIGTYPE_p_cv__Vec3d.getCPtr(rotation));
     if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
     {
         throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
 public static System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cv__Vec3d obj)
 {
     return(new System.Runtime.InteropServices.HandleRef(obj, obj.swigCPtr));
 }
コード例 #6
0
 public int GetViewId(SWIGTYPE_p_cv__Vec3d orientation)
 {
     int ret = LandmarkDetectorPINVOKE.DetectionValidator_GetViewId(swigCPtr, SWIGTYPE_p_cv__Vec3d.getCPtr(orientation));
     if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending) throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #7
0
 public double Check(SWIGTYPE_p_cv__Vec3d orientation, SWIGTYPE_p_cv__Mat_T_uchar_t intensity_img, SWIGTYPE_p_cv__Mat_T_double_t detected_landmarks)
 {
     double ret = LandmarkDetectorPINVOKE.DetectionValidator_Check(swigCPtr, SWIGTYPE_p_cv__Vec3d.getCPtr(orientation), SWIGTYPE_p_cv__Mat_T_uchar_t.getCPtr(intensity_img), SWIGTYPE_p_cv__Mat_T_double_t.getCPtr(detected_landmarks));
     if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending) throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }