Package com.irurueta.ar.sfm
Class ConstantVelocityModelSlamPairedViewsSparseReconstructor
java.lang.Object
com.irurueta.ar.sfm.BasePairedViewsSparseReconstructor<C,R,L>
com.irurueta.ar.sfm.BaseSlamPairedViewsSparseReconstructor<ConstantVelocityModelSlamCalibrationData,ConstantVelocityModelSlamPairedViewsSparseReconstructorConfiguration,ConstantVelocityModelSlamPairedViewsSparseReconstructor,ConstantVelocityModelSlamPairedViewsSparseReconstructorListener,ConstantVelocityModelSlamEstimator>
com.irurueta.ar.sfm.ConstantVelocityModelSlamPairedViewsSparseReconstructor
public class ConstantVelocityModelSlamPairedViewsSparseReconstructor
extends BaseSlamPairedViewsSparseReconstructor<ConstantVelocityModelSlamCalibrationData,ConstantVelocityModelSlamPairedViewsSparseReconstructorConfiguration,ConstantVelocityModelSlamPairedViewsSparseReconstructor,ConstantVelocityModelSlamPairedViewsSparseReconstructorListener,ConstantVelocityModelSlamEstimator>
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 constant velocity model for overall scale 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
ConstructorsConstructorDescriptionConstantVelocityModelSlamPairedViewsSparseReconstructor
(ConstantVelocityModelSlamPairedViewsSparseReconstructorConfiguration configuration, ConstantVelocityModelSlamPairedViewsSparseReconstructorListener listener) Constructor.ConstantVelocityModelSlamPairedViewsSparseReconstructor
(ConstantVelocityModelSlamPairedViewsSparseReconstructorListener 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.BaseSlamPairedViewsSparseReconstructor
hasAbsoluteOrientation, reset, setUpCalibrationData, setUpSlamEstimatorListener, transformPairOfCamerasAndPoints, 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
-
ConstantVelocityModelSlamPairedViewsSparseReconstructor
public ConstantVelocityModelSlamPairedViewsSparseReconstructor(ConstantVelocityModelSlamPairedViewsSparseReconstructorConfiguration configuration, ConstantVelocityModelSlamPairedViewsSparseReconstructorListener 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.
-
ConstantVelocityModelSlamPairedViewsSparseReconstructor
public ConstantVelocityModelSlamPairedViewsSparseReconstructor(ConstantVelocityModelSlamPairedViewsSparseReconstructorListener 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<ConstantVelocityModelSlamPairedViewsSparseReconstructorConfiguration,
ConstantVelocityModelSlamPairedViewsSparseReconstructor, ConstantVelocityModelSlamPairedViewsSparseReconstructorListener> - Returns:
- true if more views can be processed, false when reconstruction has finished.
-