Package boofcv.alg.geo.bundle
Class BundleAdjustmentOps
java.lang.Object
boofcv.alg.geo.bundle.BundleAdjustmentOps
Operations related to Bundle Adjustment.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Converts any bundle adjustment camera into aCameraPinholeBrown
. -
Field Summary
Modifier and TypeFieldDescriptionFunctions for converting. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CameraPinholeBrown
convert
(BundleAdjustmentCamera src, @Nullable BundleCameraState state, int width, int height, @Nullable CameraPinholeBrown dst) Converts theBundleAdjustmentCamera
intoCameraPinholeBrown
.static CameraKannalaBrandt
convert
(BundleKannalaBrandt src, int width, int height, @Nullable CameraKannalaBrandt dst) ConvertsCameraKannalaBrandt
intoCameraPinholeBrown
.static CameraPinholeBrown
convert
(BundlePinholeBrown src, int width, int height, @Nullable CameraPinholeBrown dst) ConvertsBundlePinholeBrown
intoCameraPinholeBrown
.static CameraPinhole
convert
(BundlePinhole src, int width, int height, @Nullable CameraPinhole dst) ConvertsBundlePinhole
intoCameraPinhole
.static CameraPinhole
convert
(BundlePinholeSimplified src, int width, int height, @Nullable CameraPinhole dst) ConvertsBundlePinholeSimplified
intoCameraPinhole
.static CameraPinholeBrown
convert
(BundlePinholeSimplified src, int width, int height, @Nullable CameraPinholeBrown dst) ConvertsBundlePinholeSimplified
intoCameraPinholeBrown
.static DMatrixRMaj
convert
(BundlePinholeSimplified src, @Nullable DMatrixRMaj dst) ConvertsBundlePinholeSimplified
intoDMatrixRMaj
.static BundlePinhole
convert
(CameraPinholeBrown src, @Nullable BundlePinhole dst) ConvertsCameraPinholeBrown
intoBundlePinhole
.static BundlePinholeBrown
convert
(CameraPinholeBrown src, @Nullable BundlePinholeBrown dst) ConvertsCameraPinholeBrown
intoBundlePinholeBrown
.static BundlePinhole
convert
(CameraPinhole src, @Nullable BundlePinhole dst) ConvertsCameraPinhole
intoBundlePinhole
.static BundlePinholeSimplified
convert
(CameraPinhole src, @Nullable BundlePinholeSimplified dst) ConvertsCameraPinholeBrown
intoBundlePinhole
.static BundlePinholeSimplified
convert
(DMatrixRMaj src, @Nullable BundlePinholeSimplified dst) ConvertsDMatrixRMaj
intoBundlePinhole
.
-
Field Details
-
convertOp
Functions for converting. Change to support more camera types
-
-
Constructor Details
-
BundleAdjustmentOps
public BundleAdjustmentOps()
-
-
Method Details
-
convert
public static CameraPinholeBrown convert(BundleAdjustmentCamera src, @Nullable @Nullable BundleCameraState state, int width, int height, @Nullable @Nullable CameraPinholeBrown dst) Converts theBundleAdjustmentCamera
intoCameraPinholeBrown
. Sets the width and height parameters and if applicable, sets the image center to be the implicit (width/2, height/2)- Parameters:
src
- (Input) Input camera model.width
- (Input) Input image widthheight
- (Input) Input image heightdst
- (Output) Storage for output.
-
convert
public static CameraPinhole convert(BundlePinhole src, int width, int height, @Nullable @Nullable CameraPinhole dst) ConvertsBundlePinhole
intoCameraPinhole
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static CameraPinholeBrown convert(BundlePinholeBrown src, int width, int height, @Nullable @Nullable CameraPinholeBrown dst) ConvertsBundlePinholeBrown
intoCameraPinholeBrown
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static CameraPinholeBrown convert(BundlePinholeSimplified src, int width, int height, @Nullable @Nullable CameraPinholeBrown dst) ConvertsBundlePinholeSimplified
intoCameraPinholeBrown
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static CameraKannalaBrandt convert(BundleKannalaBrandt src, int width, int height, @Nullable @Nullable CameraKannalaBrandt dst) ConvertsCameraKannalaBrandt
intoCameraPinholeBrown
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static CameraPinhole convert(BundlePinholeSimplified src, int width, int height, @Nullable @Nullable CameraPinhole dst) ConvertsBundlePinholeSimplified
intoCameraPinhole
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
ConvertsCameraPinholeBrown
intoBundlePinhole
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static BundlePinholeBrown convert(CameraPinholeBrown src, @Nullable @Nullable BundlePinholeBrown dst) ConvertsCameraPinholeBrown
intoBundlePinholeBrown
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static BundlePinholeSimplified convert(CameraPinhole src, @Nullable @Nullable BundlePinholeSimplified dst) ConvertsCameraPinholeBrown
intoBundlePinhole
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
ConvertsCameraPinhole
intoBundlePinhole
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
public static BundlePinholeSimplified convert(DMatrixRMaj src, @Nullable @Nullable BundlePinholeSimplified dst) ConvertsDMatrixRMaj
intoBundlePinhole
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-
convert
ConvertsBundlePinholeSimplified
intoDMatrixRMaj
.- Parameters:
src
- (Input) Input camera model.dst
- (Output) Storage for output. If null a new instance is created.- Returns:
- The converted camera model
-