public class BundleUniversalOmni extends java.lang.Object implements BundleAdjustmentCamera
CameraUniversalOmni for bundle adjustment| Modifier and Type | Field and Description |
|---|---|
double |
cx
image center (units: pixels)
|
double |
cy
image center (units: pixels)
|
boolean |
fixedMirror |
double |
fx
focal length along x and y axis (units: pixels)
|
double |
fy
focal length along x and y axis (units: pixels)
|
double |
mirrorOffset
Mirror offset distance.
|
double[] |
radial
radial distortion parameters: k1,...,kn
|
double |
skew
skew parameter, typically 0 (units: pixels)
|
double |
t1
tangential distortion parameters
|
double |
t2
tangential distortion parameters
|
boolean |
tangential |
boolean |
zeroSkew |
| Constructor and Description |
|---|
BundleUniversalOmni(boolean zeroSkew,
int numRadial,
boolean includeTangential,
boolean fixedMirror) |
BundleUniversalOmni(boolean zeroSkew,
int numRadial,
boolean includeTangential,
double mirrorOffset) |
BundleUniversalOmni(CameraUniversalOmni intrinsic) |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(CameraUniversalOmni out) |
void |
getIntrinsic(double[] parameters,
int offset)
Copies the intrinsic camera into the array.
|
int |
getIntrinsicCount()
Returns the number of intrinsic parameters for this model.
|
void |
jacobian(double camX,
double camY,
double camZ,
double[] inputX,
double[] inputY,
boolean computeIntrinsic,
double[] calibX,
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.
|
void |
project(double x,
double y,
double z,
georegression.struct.point.Point2D_F64 output)
Project the 3D point in the camera reference frame onto the camera's image plane.
|
void |
setIntrinsic(double[] parameters,
int offset)
Specifies the intrinsic camera parameters.
|
void |
setK(org.ejml.data.DMatrixRMaj K) |
public double fx
public double fy
public double skew
public double cx
public double cy
public double mirrorOffset
public double[] radial
public double t1
public double t2
public boolean zeroSkew
public boolean tangential
public boolean fixedMirror
public BundleUniversalOmni(boolean zeroSkew,
int numRadial,
boolean includeTangential,
boolean fixedMirror)
public BundleUniversalOmni(boolean zeroSkew,
int numRadial,
boolean includeTangential,
double mirrorOffset)
public BundleUniversalOmni(CameraUniversalOmni intrinsic)
public void convert(CameraUniversalOmni out)
public void setK(org.ejml.data.DMatrixRMaj K)
public void setIntrinsic(double[] parameters,
int offset)
BundleAdjustmentCamerasetIntrinsic in interface BundleAdjustmentCameraparameters - Array containing the parametersoffset - Location of first index in the array which the parameters are storedpublic void getIntrinsic(double[] parameters,
int offset)
BundleAdjustmentCameragetIntrinsic in interface BundleAdjustmentCameraparameters - Array containing the parametersoffset - Location of first index in the array which the parameters are storedpublic void project(double x,
double y,
double z,
georegression.struct.point.Point2D_F64 output)
BundleAdjustmentCameraproject in interface BundleAdjustmentCamerax - 3D point in camera reference framey - 3D point in camera reference framez - 3D point in camera reference frameoutput - Storage for projected point.public void jacobian(double camX,
double camY,
double camZ,
@Nonnull
double[] inputX,
@Nonnull
double[] inputY,
boolean computeIntrinsic,
@Nullable
double[] calibX,
@Nullable
double[] calibY)
BundleAdjustmentCamera[x',y'] is the projected pixel coordinate of
the 3D point in camera reference frame.jacobian in interface BundleAdjustmentCameracamX - (Input) 3D point in camera reference framecamY - (Input) 3D point in camera reference framecamZ - (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 Npublic int getIntrinsicCount()
BundleAdjustmentCameragetIntrinsicCount in interface BundleAdjustmentCamera