Package boofcv.alg.geo.selfcalib
Class ResolveSignAmbiguityPositiveDepth
java.lang.Object
boofcv.alg.geo.selfcalib.ResolveSignAmbiguityPositiveDepth
- All Implemented Interfaces:
VerbosePrint
public class ResolveSignAmbiguityPositiveDepth extends Object implements VerbosePrint
There's a sign ambiguity which flips the translation vector for several self calibration functions. This
uses the fact that for an observation to be seen it needs to be in front of the camera.
-
Field Summary
Fields Modifier and Type Field Description int
bestInvalid
Number of invalid in best hypothesisboolean
signChanged
Indicates if the sign was changedTriangulateNViewsMetricH
triangulator
Triangulation for n-view case -
Constructor Summary
Constructors Constructor Description ResolveSignAmbiguityPositiveDepth()
-
Method Summary
Modifier and Type Method Description void
process(List<AssociatedTriple> observations, MetricCameraTriple result)
Processes the results and observations to fix the signvoid
process(List<AssociatedTuple> observations, MetricCameras views)
Processes the results and observations to fix the signvoid
setVerbose(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
triangulator
Triangulation for n-view case -
signChanged
public boolean signChangedIndicates if the sign was changed -
bestInvalid
public int bestInvalidNumber of invalid in best hypothesis
-
-
Constructor Details
-
ResolveSignAmbiguityPositiveDepth
public ResolveSignAmbiguityPositiveDepth()
-
-
Method Details
-
process
Processes the results and observations to fix the sign- Parameters:
observations
- (input) Observations in pixelsviews
- (input/output) the current solution and modified to have the correct sign on output
-
process
Processes the results and observations to fix the sign- Parameters:
observations
- (input) Observations in pixelsresult
- (input/output) the current solution and modified to have the correct sign on output
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration)- Specified by:
setVerbose
in interfaceVerbosePrint
-