Package boofcv.alg.geo.rectify
Class DisparityParameters
java.lang.Object
boofcv.alg.geo.rectify.DisparityParameters
Describes the geometric meaning of values in a disparity image.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
The baseline between the two viewsint
The minimum possible disparity valueint
The number of possible disparity valuesfinal CameraPinhole
Rectified camera's intrinsic parametersfinal DMatrixRMaj
Rotation from view to rectified synthetic view -
Constructor Summary
ConstructorDescriptionDisparityParameters
(int disparityMin, int disparityRange, double baseline, CameraPinhole pinhole) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks if specified parameters are validboolean
pixelToLeft3D
(double pixelX, double pixelY, double value, Point3D_F64 location) Give a pixel coordinate and raw disparity value, compute its 3D location.boolean
pixelToLeft4D
(double pixelX, double pixelY, double value, Point4D_F64 location) Give a pixel coordinate and raw disparity value, compute its homogenous location.void
reset()
Resets fields to their initial valuessetTo
(DisparityParameters src) Makes 'this' a copy of 'src'.
-
Field Details
-
disparityMin
public int disparityMinThe minimum possible disparity value -
disparityRange
public int disparityRangeThe number of possible disparity values -
baseline
public double baselineThe baseline between the two views -
pinhole
Rectified camera's intrinsic parameters -
rotateToRectified
Rotation from view to rectified synthetic view
-
-
Constructor Details
-
DisparityParameters
public DisparityParameters() -
DisparityParameters
public DisparityParameters(int disparityMin, int disparityRange, double baseline, CameraPinhole pinhole)
-
-
Method Details
-
pixelToLeft3D
Give a pixel coordinate and raw disparity value, compute its 3D location. If the point is at infinity or the disparity value is illegal, then false is returned.- Parameters:
pixelX
- Pixel coordinate x-axispixelY
- Pixel coordinate y-axisvalue
- Raw disparity value. DO NOT ADD MIN.location
- (Output) Computed 3D coordinate- Returns:
- true if successful
-
pixelToLeft4D
Give a pixel coordinate and raw disparity value, compute its homogenous location. This can handle points at infinity.- Parameters:
pixelX
- Pixel coordinate x-axispixelY
- Pixel coordinate y-axisvalue
- Raw disparity value. DO NOT ADD MIN.location
- (Output) Computed homogenous coordinate- Returns:
- true if successful
-
reset
public void reset()Resets fields to their initial values -
setTo
Makes 'this' a copy of 'src'.- Parameters:
src
- Set of disparity parameters.
-
checkValidity
public void checkValidity()Checks if specified parameters are valid
-