Package boofcv.alg.distort
Class PointTransformAffine_F32
java.lang.Object
boofcv.alg.distort.PointTransformAffine_F32
- All Implemented Interfaces:
Point2Transform2_F32
,Point2Transform2Model_F32<Affine2D_F32>
@Generated("boofcv.alg.distort.PointTransformAffine_F64")
public class PointTransformAffine_F32
extends Object
implements Point2Transform2Model_F32<Affine2D_F32>
Applies an affine transform to a 2D point.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(float x, float y, Point2D_F32 out) Applies transformationCreates a copy of this transform for use in concurrent application.getModel()
Returns the active motion modelReturns a new instance of the motion modelvoid
setModel
(Affine2D_F32 model) Specifies the distortion model used by the transform
-
Field Details
-
model
-
-
Constructor Details
-
PointTransformAffine_F32
-
PointTransformAffine_F32
public PointTransformAffine_F32()
-
-
Method Details
-
compute
Description copied from interface:Point2Transform2_F32
Applies transformation- Specified by:
compute
in interfacePoint2Transform2_F32
- Parameters:
x
- x-coordinate of pointy
- y-coordinate of pointout
- Transformed point location.
-
copyConcurrent
Description copied from interface:Point2Transform2_F32
Creates a copy of this transform for use in concurrent application. What that means is that any variable which might be modified by a concurrent call toPoint2Transform2_F32.compute(float, float, georegression.struct.point.Point2D_F32)
is not passed to the 'copied' output. Expensive to compute models might be passed in as a reference.- Specified by:
copyConcurrent
in interfacePoint2Transform2_F32
-
setModel
Description copied from interface:Point2Transform2Model_F32
Specifies the distortion model used by the transform- Specified by:
setModel
in interfacePoint2Transform2Model_F32<Affine2D_F32>
- Parameters:
model
- Distortion model
-
getModel
Description copied from interface:Point2Transform2Model_F32
Returns the active motion model- Specified by:
getModel
in interfacePoint2Transform2Model_F32<Affine2D_F32>
- Returns:
- motion model
-
newInstanceModel
Description copied from interface:Point2Transform2Model_F32
Returns a new instance of the motion model- Specified by:
newInstanceModel
in interfacePoint2Transform2Model_F32<Affine2D_F32>
- Returns:
- new instance
-