Package com.irurueta.ar.sfm
Class AbsoluteOrientationSlamPairedViewsSparseReconstructor
java.lang.Object
com.irurueta.ar.sfm.BasePairedViewsSparseReconstructor<C,R,L>
com.irurueta.ar.sfm.BaseSlamPairedViewsSparseReconstructor<D,C,R,L,S>
com.irurueta.ar.sfm.BaseAbsoluteOrientationSlamPairedViewsSparseReconstructor<AbsoluteOrientationSlamCalibrationData,AbsoluteOrientationSlamPairedViewsSparseReconstructorConfiguration,AbsoluteOrientationSlamPairedViewsSparseReconstructor,AbsoluteOrientationSlamPairedViewsSparseReconstructorListener,AbsoluteOrientationSlamEstimator>
com.irurueta.ar.sfm.AbsoluteOrientationSlamPairedViewsSparseReconstructor
public class AbsoluteOrientationSlamPairedViewsSparseReconstructor
extends BaseAbsoluteOrientationSlamPairedViewsSparseReconstructor<AbsoluteOrientationSlamCalibrationData,AbsoluteOrientationSlamPairedViewsSparseReconstructorConfiguration,AbsoluteOrientationSlamPairedViewsSparseReconstructor,AbsoluteOrientationSlamPairedViewsSparseReconstructorListener,AbsoluteOrientationSlamEstimator>
Estimates pairs of cameras and 3D reconstructed points from sparse image point
correspondences in multiple view pairs and using SLAM (with accelerometer and gyroscope
data) with absolute orientation for overall scale and orientation estimation.
-
Field Summary
Fields inherited from class com.irurueta.ar.sfm.BaseSlamPairedViewsSparseReconstructor
slamEstimator
Fields inherited from class com.irurueta.ar.sfm.BasePairedViewsSparseReconstructor
configuration, currentEuclideanEstimatedCamera, currentMetricEstimatedCamera, currentScale, currentViewId, DEFAULT_SCALE, euclideanReconstructedPoints, failed, lastEuclideanCameraCenter, lastEuclideanCameraRotation, listener, metricReconstructedPoints, MIN_NUMBER_OF_VIEWS, previousEuclideanEstimatedCamera, previousMetricEstimatedCamera, previousViewId, referenceEuclideanTransformation, running
-
Constructor Summary
ConstructorsConstructorDescriptionAbsoluteOrientationSlamPairedViewsSparseReconstructor
(AbsoluteOrientationSlamPairedViewsSparseReconstructorConfiguration configuration, AbsoluteOrientationSlamPairedViewsSparseReconstructorListener listener) Constructor.AbsoluteOrientationSlamPairedViewsSparseReconstructor
(AbsoluteOrientationSlamPairedViewsSparseReconstructorListener listener) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Process one view of all the available data during the reconstruction.Methods inherited from class com.irurueta.ar.sfm.BaseAbsoluteOrientationSlamPairedViewsSparseReconstructor
hasAbsoluteOrientation, transformPairOfCamerasAndPoints, updateOrientationSample
Methods inherited from class com.irurueta.ar.sfm.BaseSlamPairedViewsSparseReconstructor
reset, setUpCalibrationData, setUpSlamEstimatorListener, updateAccelerometerSample, updateAccelerometerSample, updateGyroscopeSample, updateGyroscopeSample
Methods inherited from class com.irurueta.ar.sfm.BasePairedViewsSparseReconstructor
cancel, getConfiguration, getCurrentEstimatedFundamentalMatrix, getCurrentEuclideanEstimatedCamera, getCurrentMetricEstimatedCamera, getCurrentScale, getCurrentViewSamples, getEuclideanReconstructedPoints, getListener, getMetricReconstructedPoints, getPreviousEuclideanEstimatedCamera, getPreviousMetricEstimatedCamera, getPreviousViewSamples, getViewCount, hasFailed, isAdditionalViewPair, isCancelled, isFinished, isFirstViewPair, isRunning, start
-
Constructor Details
-
AbsoluteOrientationSlamPairedViewsSparseReconstructor
public AbsoluteOrientationSlamPairedViewsSparseReconstructor(AbsoluteOrientationSlamPairedViewsSparseReconstructorConfiguration configuration, AbsoluteOrientationSlamPairedViewsSparseReconstructorListener listener) Constructor.- Parameters:
configuration
- configuration for this re-constructor.listener
- listener in charge of handling events.- Throws:
NullPointerException
- if listener or configuration is not provided.
-
AbsoluteOrientationSlamPairedViewsSparseReconstructor
public AbsoluteOrientationSlamPairedViewsSparseReconstructor(AbsoluteOrientationSlamPairedViewsSparseReconstructorListener listener) Constructor.- Parameters:
listener
- listener in charge of handling events.- Throws:
NullPointerException
- if listener or configuration is not provided.
-
-
Method Details
-
processOneViewPair
public boolean processOneViewPair()Process one view of all the available data during the reconstruction. This method can be called multiple times instead ofBasePairedViewsSparseReconstructor.start()
to build the reconstruction step by step, one view at a time.- Overrides:
processOneViewPair
in classBasePairedViewsSparseReconstructor<AbsoluteOrientationSlamPairedViewsSparseReconstructorConfiguration,
AbsoluteOrientationSlamPairedViewsSparseReconstructor, AbsoluteOrientationSlamPairedViewsSparseReconstructorListener> - Returns:
- true if more views can be processed, false when reconstruction has finished.
-