boofcv.examples.stereo
Class ExampleRectifyUncalibratedStereo
- java.lang.Object
-
- boofcv.examples.stereo.ExampleRectifyUncalibratedStereo
-
public class ExampleRectifyUncalibratedStereo extends java.lang.ObjectIn this example, two images are rectified using a Fundamental matrix. This is known as uncalibrated stereo rectification since the camera's intrinsic parameters and stereo baseline are not known. The fundamental matrix is computed by matching image features, followed by robust estimation using RANSAC to remove outliers.
Lens distortion has been removed to increase its accuracy. It is worth mentioning that if you can remove lens distortion then you also know the intrinsic camera parameters. To see how this added information can be used take a look at
ExampleStereoTwoViewsOneCamera.
-
-
Constructor Summary
Constructors Constructor and Description ExampleRectifyUncalibratedStereo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidmain(java.lang.String[] args)static voidrectify(org.ejml.data.DenseMatrix64F F, java.util.List<AssociatedPair> inliers, java.awt.image.BufferedImage origLeft, java.awt.image.BufferedImage origRight)Rectifies the image using the provided fundamental matrix.
-
-
-
Method Detail
-
rectify
public static void rectify(org.ejml.data.DenseMatrix64F F, java.util.List<AssociatedPair> inliers, java.awt.image.BufferedImage origLeft, java.awt.image.BufferedImage origRight)Rectifies the image using the provided fundamental matrix. Both the fundamental matrix and set of inliers need to be accurate. Small errors will cause large distortions.- Parameters:
F- Fundamental matrixinliers- Set of associated pairs between the two images.origLeft- Original input image. Used for output purposes.origRight- Original input image. Used for output purposes.
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG