Package com.irurueta.ar.sfm
Class PairedViewsSparseReconstructor
java.lang.Object
com.irurueta.ar.sfm.BasePairedViewsSparseReconstructor<PairedViewsSparseReconstructorConfiguration,PairedViewsSparseReconstructor,PairedViewsSparseReconstructorListener>
com.irurueta.ar.sfm.PairedViewsSparseReconstructor
public class PairedViewsSparseReconstructor
extends BasePairedViewsSparseReconstructor<PairedViewsSparseReconstructorConfiguration,PairedViewsSparseReconstructor,PairedViewsSparseReconstructorListener>
Class in charge of estimating pairs of cameras and 3D reconstruction points from
sparse image point correspondences.
-
Field Summary
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
ConstructorsConstructorDescriptionPairedViewsSparseReconstructor
(PairedViewsSparseReconstructorConfiguration configuration, PairedViewsSparseReconstructorListener listener) Constructor.Constructor with default configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Indicates whether implementations of a re-constructor uses absolute orientation or not.protected boolean
transformPairOfCamerasAndPoints
(boolean isInitialPairOfViews, boolean hasAbsoluteOrientation) Transforms metric cameras on current pair of views so that they are referred to last kept location and rotation.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, processOneViewPair, reset, start
-
Constructor Details
-
PairedViewsSparseReconstructor
public PairedViewsSparseReconstructor(PairedViewsSparseReconstructorConfiguration configuration, PairedViewsSparseReconstructorListener 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.
-
PairedViewsSparseReconstructor
Constructor with default configuration.- Parameters:
listener
- listener in charge of handling events.- Throws:
NullPointerException
- if listener or configuration is not provided.
-
-
Method Details
-
hasAbsoluteOrientation
protected boolean hasAbsoluteOrientation()Indicates whether implementations of a re-constructor uses absolute orientation or not.- Specified by:
hasAbsoluteOrientation
in classBasePairedViewsSparseReconstructor<PairedViewsSparseReconstructorConfiguration,
PairedViewsSparseReconstructor, PairedViewsSparseReconstructorListener> - Returns:
- true if absolute orientation is used, false, otherwise.
-
transformPairOfCamerasAndPoints
protected boolean transformPairOfCamerasAndPoints(boolean isInitialPairOfViews, boolean hasAbsoluteOrientation) Transforms metric cameras on current pair of views so that they are referred to last kept location and rotation.- Overrides:
transformPairOfCamerasAndPoints
in classBasePairedViewsSparseReconstructor<PairedViewsSparseReconstructorConfiguration,
PairedViewsSparseReconstructor, PairedViewsSparseReconstructorListener> - Parameters:
isInitialPairOfViews
- true if initial pair of views is being processed, false otherwise.hasAbsoluteOrientation
- true if absolute orientation is required, false otherwise.- Returns:
- true if cameras were successfully transformed.
-