Package com.irurueta.ar.sfm
Class KnownBaselineSparseReconstructor
java.lang.Object
com.irurueta.ar.sfm.BaseSparseReconstructor<KnownBaselineSparseReconstructorConfiguration,KnownBaselineSparseReconstructor,KnownBaselineSparseReconstructorListener>
com.irurueta.ar.sfm.KnownBaselineSparseReconstructor
public class KnownBaselineSparseReconstructor
extends BaseSparseReconstructor<KnownBaselineSparseReconstructorConfiguration,KnownBaselineSparseReconstructor,KnownBaselineSparseReconstructorListener>
Class in charge of estimating cameras and 3D reconstructed points from sparse
image point correspondences from multiple views and known initial camera baseline
(camera separation), so that cameras and reconstructed points are obtained with
exact scale.
-
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
ConstructorsConstructorDescriptionKnownBaselineSparseReconstructor
(KnownBaselineSparseReconstructorConfiguration configuration, KnownBaselineSparseReconstructorListener 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
-
KnownBaselineSparseReconstructor
public KnownBaselineSparseReconstructor(KnownBaselineSparseReconstructorConfiguration configuration, KnownBaselineSparseReconstructorListener 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.
-
KnownBaselineSparseReconstructor
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<KnownBaselineSparseReconstructorConfiguration,
KnownBaselineSparseReconstructor, KnownBaselineSparseReconstructorListener> - Parameters:
isInitialPairOfViews
- true if initial pair of views is being processed, false otherwise.- Returns:
- true if post-processing succeeded, false otherwise.
-