FisheyeSteteoRectify Method |
http://www.emgu.com
Stereo rectification for fisheye camera model.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void SteteoRectify(
IInputArray K1,
IInputArray D1,
IInputArray K2,
IInputArray D2,
Size imageSize,
IInputArray R,
IInputArray tvec,
IOutputArray R1,
IOutputArray R2,
IOutputArray P1,
IOutputArray P2,
IOutputArray Q,
int flags,
Size newImageSize = null,
double balance = 0,
double fovScale = 1
)
Public Shared Sub SteteoRectify (
K1 As IInputArray,
D1 As IInputArray,
K2 As IInputArray,
D2 As IInputArray,
imageSize As Size,
R As IInputArray,
tvec As IInputArray,
R1 As IOutputArray,
R2 As IOutputArray,
P1 As IOutputArray,
P2 As IOutputArray,
Q As IOutputArray,
flags As Integer,
Optional newImageSize As Size = Nothing,
Optional balance As Double = 0,
Optional fovScale As Double = 1
)
public:
static void SteteoRectify(
IInputArray^ K1,
IInputArray^ D1,
IInputArray^ K2,
IInputArray^ D2,
Size imageSize,
IInputArray^ R,
IInputArray^ tvec,
IOutputArray^ R1,
IOutputArray^ R2,
IOutputArray^ P1,
IOutputArray^ P2,
IOutputArray^ Q,
int flags,
Size newImageSize = nullptr,
double balance = 0,
double fovScale = 1
)
static member SteteoRectify :
K1 : IInputArray *
D1 : IInputArray *
K2 : IInputArray *
D2 : IInputArray *
imageSize : Size *
R : IInputArray *
tvec : IInputArray *
R1 : IOutputArray *
R2 : IOutputArray *
P1 : IOutputArray *
P2 : IOutputArray *
Q : IOutputArray *
flags : int *
?newImageSize : Size *
?balance : float *
?fovScale : float
(* Defaults:
let _newImageSize = defaultArg newImageSize null
let _balance = defaultArg balance 0
let _fovScale = defaultArg fovScale 1
*)
-> unit
Parameters
- K1
- Type: Emgu.CVIInputArray
First camera matrix. - D1
- Type: Emgu.CVIInputArray
First camera distortion parameters. - K2
- Type: Emgu.CVIInputArray
Second camera matrix. - D2
- Type: Emgu.CVIInputArray
Second camera distortion parameters. - imageSize
- Type: System.DrawingSize
Size of the image used for stereo calibration. - R
- Type: Emgu.CVIInputArray
Rotation matrix between the coordinate systems of the first and the second cameras. - tvec
- Type: Emgu.CVIInputArray
Translation vector between coordinate systems of the cameras. - R1
- Type: Emgu.CVIOutputArray
Output 3x3 rectification transform (rotation matrix) for the first camera. - R2
- Type: Emgu.CVIOutputArray
Output 3x3 rectification transform (rotation matrix) for the second camera. - P1
- Type: Emgu.CVIOutputArray
Output 3x4 projection matrix in the new (rectified) coordinate systems for the first camera. - P2
- Type: Emgu.CVIOutputArray
Output 3x4 projection matrix in the new (rectified) coordinate systems for the second camera. - Q
- Type: Emgu.CVIOutputArray
Output 4×4 disparity-to-depth mapping matrix (see reprojectImageTo3D ). - flags
- Type: SystemInt32
Operation flags that may be zero or ZeroDisparity . If the flag is set, the function makes the principal points of each camera have the same pixel coordinates in the rectified views. And if the flag is not set, the function may still shift the images in the horizontal or vertical direction (depending on the orientation of epipolar lines) to maximize the useful image area. - newImageSize (Optional)
- Type: System.DrawingSize
New image resolution after rectification. The same size should be passed to initUndistortRectifyMap. When (0,0) is passed (default), it is set to the original imageSize . Setting it to larger value can help you preserve details in the original image, especially when there is a big radial distortion. - balance (Optional)
- Type: SystemDouble
Sets the new focal length in range between the min focal length and the max focal length. Balance is in range of [0, 1]. - fovScale (Optional)
- Type: SystemDouble
Divisor for new focal length.
See Also