Package com.irurueta.ar.sfm
Class SparseReconstructor
java.lang.Object
com.irurueta.ar.sfm.BaseSparseReconstructor<SparseReconstructorConfiguration,SparseReconstructor,SparseReconstructorListener>
com.irurueta.ar.sfm.SparseReconstructor
public class SparseReconstructor
extends BaseSparseReconstructor<SparseReconstructorConfiguration,SparseReconstructor,SparseReconstructorListener>
Class in charge of estimating cameras and 3D reconstruction points from
sparse image point correspondences.
-
Field Summary
Fields inherited from class com.irurueta.ar.sfm.BaseSparseReconstructor
activeEuclideanReconstructedPoints, activeMetricReconstructedPoints, configuration, currentEuclideanEstimatedCamera, currentMetricEstimatedCamera, currentScale, DEFAULT_SCALE, failed, listener, MIN_NUMBER_OF_VIEWS, previousEuclideanEstimatedCamera, previousMetricEstimatedCamera, running
-
Constructor Summary
ConstructorsConstructorDescriptionSparseReconstructor
(SparseReconstructorConfiguration configuration, SparseReconstructorListener listener) Constructor.Constructor with default configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
postProcessOne
(boolean isInitialPairOfViews) Called when processing one frame is successfully finished.Methods inherited from class com.irurueta.ar.sfm.BaseSparseReconstructor
cancel, getActiveEuclideanReconstructedPoints, getActiveMetricReconstructedPoints, getConfiguration, getCurrentEstimatedFundamentalMatrix, getCurrentEuclideanEstimatedCamera, getCurrentMetricEstimatedCamera, getCurrentScale, getCurrentViewNewlySpawnedSamples, getCurrentViewTrackedSamples, getListener, getPreviousEuclideanEstimatedCamera, getPreviousMetricEstimatedCamera, getPreviousViewTrackedSamples, getViewCount, hasFailed, isAdditionalView, isCancelled, isFinished, isFirstView, isRunning, isSecondView, processOneView, reset, start
-
Constructor Details
-
SparseReconstructor
public SparseReconstructor(SparseReconstructorConfiguration configuration, SparseReconstructorListener 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.
-
SparseReconstructor
Constructor with default configuration.- Parameters:
listener
- listener in charge of handling events.- Throws:
NullPointerException
- if listener is not provided.
-
-
Method Details
-
postProcessOne
protected boolean postProcessOne(boolean isInitialPairOfViews) Called when processing one frame is successfully finished. This can be done to estimate scale on those implementations where scale can be measured or is already known.- Specified by:
postProcessOne
in classBaseSparseReconstructor<SparseReconstructorConfiguration,
SparseReconstructor, SparseReconstructorListener> - Parameters:
isInitialPairOfViews
- true if initial pair of views is being processed, false otherwise.- Returns:
- true if post-processing succeeded, false otherwise.
-