Beispiel #1
0
 public static void Remap(Core.Mat src, Core.Mat dst, Core.Mat map1, Core.Mat map2, InterpolationFlags interpolation, BorderTypes borderType,
                          Core.Scalar borderValue)
 {
     Core.Exception exception = new Core.Exception();
     au_cv_imgproc_remap1(src.cppPtr, dst.cppPtr, map1.cppPtr, map2.cppPtr, (int)interpolation, (int)borderType, borderValue.cppPtr, exception.cppPtr);
     exception.Check();
 }
Beispiel #2
0
 public static void Rodrigues(Core.Vec3d rotationVector, out Core.Mat rotationMatrix)
 {
     Core.Exception exception = new Core.Exception();
     System.IntPtr  rotationMatPtr;
     au_cv_calib3d_Rodrigues(rotationVector.cppPtr, out rotationMatPtr, exception.cppPtr);
     rotationMatrix = new Core.Mat(rotationMatPtr);
     exception.Check();
 }
Beispiel #3
0
                // TODO: add the other version of undistord
                public static void Undistort(Core.Mat inputImage, out Core.Mat outputImage, Core.Mat cameraMatrix, Core.Mat distCoeffs)
                {
                    Core.Exception exception = new Core.Exception();
                    System.IntPtr  outputImagePtr;

                    au_cv_imgproc_undistort2(inputImage.cppPtr, out outputImagePtr, cameraMatrix.cppPtr, distCoeffs.cppPtr, exception.cppPtr);
                    outputImage = new Core.Mat(outputImagePtr);

                    exception.Check();
                }
Beispiel #4
0
                public static void InitUndistortRectifyMap(Core.Mat cameraMatrix, Core.Mat distCoeffs, Core.Mat R, Core.Mat newCameraMatrix, Core.Size size,
                                                           Core.TYPE m1type, out Core.Mat map1, out Core.Mat map2)
                {
                    Core.Exception exception = new Core.Exception();
                    System.IntPtr  map1Ptr, map2Ptr;

                    au_cv_imgproc_initUndistortRectifyMap(cameraMatrix.cppPtr, distCoeffs.cppPtr, R.cppPtr, newCameraMatrix.cppPtr, size.cppPtr, (int)m1type,
                                                          out map1Ptr, out map2Ptr, exception.cppPtr);
                    map1 = new Core.Mat(map1Ptr);
                    map2 = new Core.Mat(map2Ptr);

                    exception.Check();
                }
Beispiel #5
0
 public static void Remap(Core.Mat src, Core.Mat dst, Core.Mat map1, Core.Mat map2, InterpolationFlags interpolation)
 {
     Core.Exception exception = new Core.Exception();
     au_cv_imgproc_remap3(src.cppPtr, dst.cppPtr, map1.cppPtr, map2.cppPtr, (int)interpolation, exception.cppPtr);
     exception.Check();
 }