Package boofcv.alg.geo.bundle.cameras
Class BundleZoomSimplified
java.lang.Object
boofcv.alg.geo.bundle.cameras.BundleZoomSimplified
- All Implemented Interfaces:
BundleAdjustmentCamera
A simplified camera model that assumes the camera's zoom is known as part of the camera state
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidgetIntrinsic(double[] parameters, int offset) Copies the intrinsic camera into the array.intReturns the number of intrinsic parameters for this model.booleanisIdentical(BundleZoomSimplified c, double tol) voidjacobian(double X, double Y, double Z, double[] inputX, double[] inputY, boolean computeIntrinsic, @org.jetbrains.annotations.Nullable double[] calibX, @org.jetbrains.annotations.Nullable double[] calibY) Computes the gradient for the projected pixel coordinate with partials for the input 3D point in camera reference frame and camera intrinsic parameters.voidproject(double camX, double camY, double camZ, Point2D_F64 output) Project the 3D point in the camera reference frame onto the camera's image plane.voidreset()voidsetCameraState(BundleCameraState state) Measured / known state of the camera when observations were made.voidsetIntrinsic(double[] parameters, int offset) Specifies the intrinsic camera parameters.Set's the classes state to the value contained in this map.toMap()Convert's the values into a map format where each class's field has a corresponding key with the same name and primitive value or primitive array.toString()
-
Field Details
-
TYPE_NAME
- See Also:
-
fOff
public double fOff -
fScale
public double fScale -
k1
public double k1 -
k2
public double k2
-
-
Constructor Details
-
BundleZoomSimplified
public BundleZoomSimplified() -
BundleZoomSimplified
public BundleZoomSimplified(double fOff, double fScale, double k1, double k2)
-
-
Method Details
-
setIntrinsic
public void setIntrinsic(double[] parameters, int offset) Description copied from interface:BundleAdjustmentCameraSpecifies the intrinsic camera parameters.- Specified by:
setIntrinsicin interfaceBundleAdjustmentCamera- Parameters:
parameters- Array containing the parametersoffset- Location of first index in the array which the parameters are stored
-
getIntrinsic
public void getIntrinsic(double[] parameters, int offset) Description copied from interface:BundleAdjustmentCameraCopies the intrinsic camera into the array.- Specified by:
getIntrinsicin interfaceBundleAdjustmentCamera- Parameters:
parameters- Array containing the parametersoffset- Location of first index in the array which the parameters are stored
-
setCameraState
Description copied from interface:BundleAdjustmentCameraMeasured / known state of the camera when observations were made. This can indicate the camera's zoom level when a mechanical zoom is available. If the model has a fixed state then this function is optional.- Specified by:
setCameraStatein interfaceBundleAdjustmentCamera- Parameters:
state- Camera's state.
-
project
Description copied from interface:BundleAdjustmentCameraProject the 3D point in the camera reference frame onto the camera's image plane.- Specified by:
projectin interfaceBundleAdjustmentCamera- Parameters:
camX- 3D point in camera reference framecamY- 3D point in camera reference framecamZ- 3D point in camera reference frameoutput- Storage for projected point.
-
jacobian
public void jacobian(double X, double Y, double Z, double[] inputX, double[] inputY, boolean computeIntrinsic, @Nullable @org.jetbrains.annotations.Nullable double[] calibX, @Nullable @org.jetbrains.annotations.Nullable double[] calibY) Description copied from interface:BundleAdjustmentCameraComputes the gradient for the projected pixel coordinate with partials for the input 3D point in camera reference frame and camera intrinsic parameters.[x',y']is the projected pixel coordinate of the 3D point in camera reference frame.- Specified by:
jacobianin interfaceBundleAdjustmentCamera- Parameters:
X- (Input) 3D point in camera reference frameY- (Input) 3D point in camera reference frameZ- (Input) 3D point in camera reference frameinputX- (Output) Partial of projected x' relative to input camera point.[@x'/@camX, @ x' / @ camY, @ x' / @ camZ]length 3inputY- (Output) Partial of projected y' relative to input camera point.[@y'/@camX, @ y' / @ camY, @ y' / @ camZ]length 3computeIntrinsic- If true the calibX and calibY is computed. Otherwise they are ignored and can be nullcalibX- (Output) Partial of projected x' relative to calibration parameters. length NcalibY- (Output) Partial of projected y' relative to calibration parameters. length N
-
getIntrinsicCount
public int getIntrinsicCount()Description copied from interface:BundleAdjustmentCameraReturns the number of intrinsic parameters for this model. If the camera is known then the number of parameters is zero- Specified by:
getIntrinsicCountin interfaceBundleAdjustmentCamera- Returns:
- number of intrinsic parameters.
-
setTo
Description copied from interface:BundleAdjustmentCameraSet's the classes state to the value contained in this map. Used when deserializing.- Specified by:
setToin interfaceBundleAdjustmentCamera
-
toMap
Description copied from interface:BundleAdjustmentCameraConvert's the values into a map format where each class's field has a corresponding key with the same name and primitive value or primitive array. This is used for serialization to YAML.- Specified by:
toMapin interfaceBundleAdjustmentCamera
-
toString
-
reset
public void reset() -
setTo
-
copy
-
isIdentical
-