Package boofcv.abst.geo.selfcalib
Class GenerateMetricTripleFromProjective
java.lang.Object
boofcv.abst.geo.selfcalib.GenerateMetricTripleFromProjective
- All Implemented Interfaces:
ModelGeneratorViews<MetricCameraTriple,
,AssociatedTriple, ElevateViewInfo> ModelGenerator<MetricCameraTriple,
AssociatedTriple>
public class GenerateMetricTripleFromProjective
extends Object
implements ModelGeneratorViews<MetricCameraTriple,AssociatedTriple,ElevateViewInfo>
Wrapper around
ProjectiveToMetricCameras
and Estimate1ofTrifocalTensor
for use in robust model
fitting.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionGenerateMetricTripleFromProjective
(Estimate1ofTrifocalTensor trifocal, ProjectiveToMetricCameras projectiveToMetric) -
Method Summary
Modifier and TypeMethodDescriptionboolean
generate
(List<AssociatedTriple> observationTriple, MetricCameraTriple output) int
int
Returns the new of views which need to be setvoid
setView
(int view, ElevateViewInfo viewInfo) Specify parameters for a particular view
-
Field Details
-
trifocal
-
projectiveToMetric
-
-
Constructor Details
-
GenerateMetricTripleFromProjective
public GenerateMetricTripleFromProjective(Estimate1ofTrifocalTensor trifocal, ProjectiveToMetricCameras projectiveToMetric)
-
-
Method Details
-
setView
Description copied from interface:ModelGeneratorViews
Specify parameters for a particular view- Specified by:
setView
in interfaceModelGeneratorViews<MetricCameraTriple,
AssociatedTriple, ElevateViewInfo> - Parameters:
view
- which view this belongs toviewInfo
- Information about this view. E.g. image dimension, intrinsic parameters, ...etc
-
getNumberOfViews
public int getNumberOfViews()Description copied from interface:ModelGeneratorViews
Returns the new of views which need to be set- Specified by:
getNumberOfViews
in interfaceModelGeneratorViews<MetricCameraTriple,
AssociatedTriple, ElevateViewInfo>
-
generate
- Specified by:
generate
in interfaceModelGenerator<MetricCameraTriple,
AssociatedTriple>
-
getMinimumPoints
public int getMinimumPoints()- Specified by:
getMinimumPoints
in interfaceModelGenerator<MetricCameraTriple,
AssociatedTriple>
-