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
FieldsModifier and TypeFieldDescriptiondoubleThe baseline between the two viewsintThe minimum possible disparity valueintThe number of possible disparity valuesfinal CameraPinholeRectified camera's intrinsic parametersfinal DMatrixRMajRotation from view to rectified synthetic view -
Constructor Summary
ConstructorsConstructorDescriptionDisparityParameters(int disparityMin, int disparityRange, double baseline, CameraPinhole pinhole) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if specified parameters are validbooleanpixelToLeft3D(double pixelX, double pixelY, double value, Point3D_F64 location) Give a pixel coordinate and raw disparity value, compute its 3D location.booleanpixelToLeft4D(double pixelX, double pixelY, double value, Point4D_F64 location) Give a pixel coordinate and raw disparity value, compute its homogenous location.voidreset()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
-