Package boofcv.abst.geo.selfcalib
Class ProjectiveToMetricCameraDualQuadratic
java.lang.Object
boofcv.abst.geo.selfcalib.ProjectiveToMetricCameraDualQuadratic
- All Implemented Interfaces:
ProjectiveToMetricCameras
,VerbosePrint
public class ProjectiveToMetricCameraDualQuadratic
extends Object
implements ProjectiveToMetricCameras, VerbosePrint
Wrapper around
SelfCalibrationLinearDualQuadratic
for ProjectiveToMetricCameras
.-
Field Summary
Modifier and TypeFieldDescriptiondouble
Accept a solution if the number of invalid features is less than or equal to this fraction -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the minimum number of views required to estimate the metric upgradeboolean
process
(List<ElevateViewInfo> views, List<DMatrixRMaj> cameraMatrices, List<AssociatedTuple> observations, MetricCameras metricViews) Computes metric upgrade from projective cameras.void
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
invalidFractionAccept
public double invalidFractionAcceptAccept a solution if the number of invalid features is less than or equal to this fraction
-
-
Constructor Details
-
ProjectiveToMetricCameraDualQuadratic
-
-
Method Details
-
process
public boolean process(List<ElevateViewInfo> views, List<DMatrixRMaj> cameraMatrices, List<AssociatedTuple> observations, MetricCameras metricViews) Description copied from interface:ProjectiveToMetricCameras
Computes metric upgrade from projective cameras.- Specified by:
process
in interfaceProjectiveToMetricCameras
- Parameters:
views
- (Input) Specifies the image's shape and if the same camera was used to capture multiple viewscameraMatrices
- (Input) List of projective camera matrices. First view is P=[I|0] implicitly and is not includedobservations
- (Input) Observations of common features among all the views. Observations are in pixels. some implementations might require the pixel observations be offset by the principle point.metricViews
- (Output) Storage for found metric upgrade. Translations are scaled automatically to be close to 1.0.- Returns:
- true if successful or false if it failed
-
getMinimumViews
public int getMinimumViews()Description copied from interface:ProjectiveToMetricCameras
Returns the minimum number of views required to estimate the metric upgrade- Specified by:
getMinimumViews
in interfaceProjectiveToMetricCameras
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
-