Méthode | Description | |
---|---|---|
CalibrateCamera ( MCvPoint3D32f objectPoints, |
Estimates intrinsic camera parameters and extrinsic parameters for each of the views
|
|
DrawChessboardCorners ( Byte>.Image |
Draws the individual chessboard corners detected (as red circles) in case if the board was not found (patternWasFound== false) or the colored corners connected with lines when the board was found (patternWasFound == true).
|
|
EstimateRigidTransform ( |
Estimate rigid transformation between 2 point sets.
|
|
FindChessboardCorners ( Byte>.Image |
Attempts to determine whether the input image is a view of the chessboard pattern and locate internal chessboard corners
|
|
FindExtrinsicCameraParams2 ( MCvPoint3D32f objectPoints, |
Estimates extrinsic camera parameters using known intrinsic parameters and extrinsic parameters for each view. The coordinates of 3D object points and their correspondent 2D projections must be specified. This function also minimizes back-projection error.
|
|
FindHomography ( Matrix |
Use the specific method to find perspective transformation H=||h_ij|| between the source and the destination planes
|
|
FindHomography ( |
Finds perspective transformation H=||h_ij|| between the source and the destination planes
|
|
GetAffineTransform ( |
Calculates the matrix of an affine transform such that: (x'_i,y'_i)^T=map_matrix (x_i,y_i,1)^T where dst(i)=(x'_i,y'_i), src(i)=(x_i,y_i), i=0..2.
|
|
GetPerspectiveTransform ( |
calculates matrix of perspective transform such that: (t_i x'_i,t_i y'_i,t_i)^T=map_matrix (x_i,y_i,1)^T where dst(i)=(x'_i,y'_i), src(i)=(x_i,y_i), i=0..3.
|
|
ProjectPoints ( MCvPoint3D32f objectPoints, Emgu.CV.ExtrinsicCameraParameters extrin, Emgu.CV.IntrinsicCameraParameters intrin ) : System.Drawing.PointF[] |
Computes projections of 3D points to the image plane given intrinsic and extrinsic camera parameters. Optionally, the function computes jacobians - matrices of partial derivatives of image points as functions of all the input parameters w.r.t. the particular parameters, intrinsic and/or extrinsic. The jacobians are used during the global optimization in cvCalibrateCamera2 and cvFindExtrinsicCameraParams2. The function itself is also used to compute back-projection error for with current intrinsic and extrinsic parameters. Note, that with intrinsic and/or extrinsic parameters set to special values, the function can be used to compute just extrinsic transformation or just intrinsic transformation (i.e. distortion of a sparse set of points) |
|
StereoCalibrate ( MCvPoint3D32f objectPoints, |
Estimates transformation between the 2 cameras making a stereo pair. If we have a stereo camera, where the relative position and orientatation of the 2 cameras is fixed, and if we computed poses of an object relative to the fist camera and to the second camera, (R1, T1) and (R2, T2), respectively (that can be done with cvFindExtrinsicCameraParams2), obviously, those poses will relate to each other, i.e. given (R1, T1) it should be possible to compute (R2, T2) - we only need to know the position and orientation of the 2nd camera relative to the 1st camera. That's what the described function does. It computes (R, T) such that: R2=R*R1, T2=R*T1 + T
|
Méthode | Description | |
---|---|---|
ToMatrix ( MCvPoint3D32f data ) : Matrix |
||
ToMatrix ( |
public static CalibrateCamera ( MCvPoint3D32f objectPoints, |
||
objectPoints | MCvPoint3D32f | The 3D location of the object points. The first index is the index of image, second index is the index of the point |
imagePoints | The 2D image location of the points. The first index is the index of the image, second index is the index of the point | |
imageSize | The size of the image, used only to initialize intrinsic camera matrix | |
intrinsicParam | Emgu.CV.IntrinsicCameraParameters | The intrisinc parameters, might contains some initial values. The values will be modified by this function. |
flags | CvEnum | Flags |
extrinsicParams | Emgu.CV.ExtrinsicCameraParameters | The output array of extrinsic parameters. |
Résultat | double |
public static DrawChessboardCorners ( Byte>.Image |
||
image | Byte>.Image | The destination image |
patternSize | The number of inner corners per chessboard row and column | |
corners | The array of corners detected. Can be null if no corners were found | |
Résultat | void |
public static EstimateRigidTransform ( |
||
src | The points from the source image | |
dest | The corresponding points from the destination image | |
fullAffine | bool | Indicates if full affine should be performed |
Résultat | RotationMatrix2D |
public static FindChessboardCorners ( Byte>.Image |
||
image | Byte>.Image | Source chessboard view |
patternSize | The number of inner corners per chessboard row and column | |
flags | CvEnum | Various operation flags |
Résultat | System.Drawing.PointF[] |
public static FindExtrinsicCameraParams2 ( MCvPoint3D32f objectPoints, |
||
objectPoints | MCvPoint3D32f | The array of object points |
imagePoints | The array of corresponding image points | |
intrin | Emgu.CV.IntrinsicCameraParameters | The intrinsic parameters |
Résultat | Emgu.CV.ExtrinsicCameraParameters |
public static FindHomography ( Matrix |
||
srcPoints | Matrix |
Point coordinates in the original plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogeneous coordinates), where N is the number of points |
dstPoints | Matrix |
Point coordinates in the destination plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogeneous coordinates) |
method | CvEnum | FindHomography method |
ransacReprojThreshold | double | The maximum allowed reprojection error to treat a point pair as an inlier. The parameter is only used in RANSAC-based homography estimation. E.g. if dst_points coordinates are measured in pixels with pixel-accurate precision, it makes sense to set this parameter somewhere in the range ~1..3 |
Résultat | HomographyMatrix |
public static FindHomography ( |
||
srcPoints | Point coordinates in the original plane | |
dstPoints | Point coordinates in the destination plane | |
method | CvEnum | FindHomography method |
ransacReprojThreshold | double | /// The maximum allowed reprojection error to treat a point pair as an inlier. /// The parameter is only used in RANSAC-based homography estimation. /// E.g. if dst_points coordinates are measured in pixels with pixel-accurate precision, it makes sense to set this parameter somewhere in the range ~1..3 /// |
Résultat | HomographyMatrix |
public static GetAffineTransform ( |
||
src | Coordinates of 3 triangle vertices in the source image. If the array contains more than 3 points, only the first 3 will be used | |
dest | Coordinates of the 3 corresponding triangle vertices in the destination image. If the array contains more than 3 points, only the first 3 will be used | |
Résultat | RotationMatrix2D |
public static GetPerspectiveTransform ( |
||
src | Coordinates of 4 quadrangle vertices in the source image | |
dest | Coordinates of the 4 corresponding quadrangle vertices in the destination image | |
Résultat | HomographyMatrix |
public static ProjectPoints ( MCvPoint3D32f objectPoints, Emgu.CV.ExtrinsicCameraParameters extrin, Emgu.CV.IntrinsicCameraParameters intrin ) : System.Drawing.PointF[] | ||
objectPoints | MCvPoint3D32f | The array of object points. |
extrin | Emgu.CV.ExtrinsicCameraParameters | Extrinsic parameters |
intrin | Emgu.CV.IntrinsicCameraParameters | Intrinsic parameters |
Résultat | System.Drawing.PointF[] |
public static StereoCalibrate ( MCvPoint3D32f objectPoints, |
||
objectPoints | MCvPoint3D32f | The 3D location of the object points. The first index is the index of image, second index is the index of the point |
imagePoints1 | The 2D image location of the points for camera 1. The first index is the index of the image, second index is the index of the point | |
imagePoints2 | The 2D image location of the points for camera 2. The first index is the index of the image, second index is the index of the point | |
intrinsicParam1 | Emgu.CV.IntrinsicCameraParameters | The intrisinc parameters for camera 1, might contains some initial values. The values will be modified by this function. |
intrinsicParam2 | Emgu.CV.IntrinsicCameraParameters | The intrisinc parameters for camera 2, might contains some initial values. The values will be modified by this function. |
imageSize | Size of the image, used only to initialize intrinsic camera matrix | |
flags | CvEnum | Different flags |
termCrit | Termination criteria for the iterative optimiziation algorithm | |
extrinsicParams | Emgu.CV.ExtrinsicCameraParameters | The extrinsic parameters which contains: /// R - The rotation matrix between the 1st and the 2nd cameras' coordinate systems; /// T - The translation vector between the cameras' coordinate systems. |
foundamentalMatrix | Matrix |
The fundamental matrix |
essentialMatrix | Matrix |
The essential matrix |
Résultat | void |