Emgu.CV.CvInvoke.cvCalibrationMatrixValues C# (CSharp) Метод

cvCalibrationMatrixValues() приватный Метод

private cvCalibrationMatrixValues ( IntPtr calibMatr, int imgWidth, int imgHeight, double apertureWidth, double apertureHeight, double &fovx, double &fovy, double &focalLength, MCvPoint2D64f &principalPoint, double &pixelAspectRatio ) : void
calibMatr IntPtr
imgWidth int
imgHeight int
apertureWidth double
apertureHeight double
fovx double
fovy double
focalLength double
principalPoint MCvPoint2D64f
pixelAspectRatio double
Результат void
        public static extern void cvCalibrationMatrixValues(
         IntPtr calibMatr,
         int imgWidth,
         int imgHeight,
         double apertureWidth,
         double apertureHeight,
         ref double fovx,
         ref double fovy,
         ref double focalLength,
         ref MCvPoint2D64f principalPoint,
         ref double pixelAspectRatio);

Usage Example

 /// <summary>
 /// computes various useful camera (sensor/lens) characteristics using the computed camera calibration matrix, image frame resolution in pixels and the physical aperture size
 /// </summary>
 /// <param name="imgWidth">Image width in pixels</param>
 /// <param name="imgHeight">Image height in pixels</param>
 /// <param name="apertureWidth">Aperture width in realworld units (optional input parameter). Set it to 0 if not used</param>
 /// <param name="apertureHeight">Aperture width in realworld units (optional input parameter). Set it to 0 if not used</param>
 /// <param name="fovx">Field of view angle in x direction in degrees</param>
 /// <param name="fovy">Field of view angle in y direction in degrees </param>
 /// <param name="focalLength">Focal length in realworld units </param>
 /// <param name="principalPoint">The principal point in realworld units </param>
 /// <param name="pixelAspectRatio">The pixel aspect ratio ~ fy/f</param>
 public void GetIntrinsicMatrixValues(
     int imgWidth,
     int imgHeight,
     double apertureWidth,
     double apertureHeight,
     out double fovx,
     out double fovy,
     out double focalLength,
     out MCvPoint2D64f principalPoint,
     out double pixelAspectRatio)
 {
     fovx             = 0;
     fovy             = 0;
     focalLength      = 0;
     principalPoint   = new MCvPoint2D64f();
     pixelAspectRatio = 0;
     CvInvoke.cvCalibrationMatrixValues(_intrinsicMatrix.Ptr, imgWidth, imgHeight, apertureWidth, apertureHeight, ref fovx, ref fovy, ref focalLength, ref principalPoint, ref pixelAspectRatio);
 }
CvInvoke