Package com.irurueta.ar.sfm
Class TwoViewsSparseReconstructor
java.lang.Object
com.irurueta.ar.sfm.BaseTwoViewsSparseReconstructor<TwoViewsSparseReconstructorConfiguration,TwoViewsSparseReconstructor,TwoViewsSparseReconstructorListener>
com.irurueta.ar.sfm.TwoViewsSparseReconstructor
public class TwoViewsSparseReconstructor
extends BaseTwoViewsSparseReconstructor<TwoViewsSparseReconstructorConfiguration,TwoViewsSparseReconstructor,TwoViewsSparseReconstructorListener>
Class in charge of estimating cameras and 3D reconstructed points from sparse
image point correspondences in two views.
-
Field Summary
Fields inherited from class com.irurueta.ar.sfm.BaseTwoViewsSparseReconstructor
configuration, estimatedCamera1, estimatedCamera2, estimatedFundamentalMatrix, failed, listener, NUMBER_OF_VIEWS, reconstructedPoints, running
-
Constructor Summary
ConstructorsConstructorDescriptionTwoViewsSparseReconstructor
(TwoViewsSparseReconstructorConfiguration configuration, TwoViewsSparseReconstructorListener listener) Constructor.Constructor with default configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Called when processing one frame is successfully finished.Methods inherited from class com.irurueta.ar.sfm.BaseTwoViewsSparseReconstructor
cancel, getConfiguration, getEstimatedCamera1, getEstimatedCamera2, getEstimatedFundamentalMatrix, getListener, getReconstructedPoints, getViewCount, hasFailed, isCancelled, isFinished, isRunning, processOneView, reset, start
-
Constructor Details
-
TwoViewsSparseReconstructor
public TwoViewsSparseReconstructor(TwoViewsSparseReconstructorConfiguration configuration, TwoViewsSparseReconstructorListener 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.
-
TwoViewsSparseReconstructor
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()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 classBaseTwoViewsSparseReconstructor<TwoViewsSparseReconstructorConfiguration,
TwoViewsSparseReconstructor, TwoViewsSparseReconstructorListener> - Returns:
- true if post-processing succeeded, false otherwise.
-