Package georegression.struct.homography
Class Homography2D_F32
java.lang.Object
org.ejml.data.FMatrix3x3
georegression.struct.Matrix3x3_F32
georegression.struct.homography.Homography2D_F32
- All Implemented Interfaces:
Homography<Homography2D_F32>
,InvertibleTransform<Homography2D_F32>
,Serializable
,org.ejml.data.FMatrix
,org.ejml.data.FMatrixFixed
,org.ejml.data.Matrix
@Generated("georegression.struct.homography.Homography2D_F64")
public class Homography2D_F32
extends Matrix3x3_F32
implements Homography<Homography2D_F32>
Describes a homography transform in 2D.
- See Also:
-
Field Summary
Fields inherited from class org.ejml.data.FMatrix3x3
a11, a12, a13, a21, a22, a23, a31, a32, a33
-
Constructor Summary
ConstructorDescriptionHomography2D_F32
(float a11, float a12, float a13, float a21, float a22, float a23, float a31, float a32, float a33) -
Method Summary
Modifier and TypeMethodDescriptionconcat
(Homography2D_F32 second, @Nullable Homography2D_F32 ret) Computes a transform which is the equivalent to applying 'this' then the 'second' transform.copy()
Creates a new instance of the same SpecialEuclidean as this class.org.ejml.data.FMatrixRMaj
ddrm()
org.ejml.data.FMatrixRMaj
ddrm
(@Nullable org.ejml.data.FMatrixRMaj output) int
Returns the dimension of the space which this transform operates on.invert
(@Nullable Homography2D_F32 ret) Computes a transform which is the inverse of this transform.void
reset()
Sets the transform to its initial state of no transform.setTo
(Homography2D_F32 target) Assigns 'this' to the value of target.toString()
Methods inherited from class georegression.struct.Matrix3x3_F32
getA11, getA12, getA13, getA21, getA22, getA23, getA31, getA32, getA33, scale, setA11, setA12, setA13, setA21, setA22, setA23, setA31, setA32, setA33, setTo, setTo, zero
Methods inherited from class org.ejml.data.FMatrix3x3
createLike, get, getNumCols, getNumElements, getNumRows, getType, print, print, set, setTo, setTo, unsafe_get, unsafe_set
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ejml.data.FMatrixFixed
create
Methods inherited from interface georegression.struct.InvertibleTransform
concatInvert, invertConcat
-
Constructor Details
-
Homography2D_F32
public Homography2D_F32(float a11, float a12, float a13, float a21, float a22, float a23, float a31, float a32, float a33) -
Homography2D_F32
-
Homography2D_F32
public Homography2D_F32()
-
-
Method Details
-
getDimension
public int getDimension()Description copied from interface:InvertibleTransform
Returns the dimension of the space which this transform operates on.- Specified by:
getDimension
in interfaceInvertibleTransform<Homography2D_F32>
- Returns:
- space's dimension
-
createInstance
Description copied from interface:InvertibleTransform
Creates a new instance of the same SpecialEuclidean as this class.- Specified by:
createInstance
in interfaceInvertibleTransform<Homography2D_F32>
- Returns:
- A new instance.
-
setTo
Description copied from interface:InvertibleTransform
Assigns 'this' to the value of target.- Specified by:
setTo
in interfaceInvertibleTransform<Homography2D_F32>
- Parameters:
target
- The new value of 'this'.- Returns:
- A reference to 'this' to enable chaining
-
concat
Description copied from interface:InvertibleTransform
Computes a transform which is the equivalent to applying 'this' then the 'second' transform.
For example:
Point A = tran2( tran1( A ) );
Point A = tran12( A );
where tran12 = tran1.concat( tran2 , null );NOTE: 'second', 'result', and 'this' must all be unique instances.
- Specified by:
concat
in interfaceInvertibleTransform<Homography2D_F32>
- Parameters:
second
- The second transform which is applied. Not modified.ret
- A transform which is equivalent to applying the first then the second. If null then a new instance is declared. Modified.- Returns:
- The equivalent transform.
-
invert
Description copied from interface:InvertibleTransform
Computes a transform which is the inverse of this transform. The 'this' matrix can be passed in as an input.
Example:
Point A = tran(B);
Point B = inv(A);
where inv = invert( tran );- Specified by:
invert
in interfaceInvertibleTransform<Homography2D_F32>
- Parameters:
ret
- Where the inverse will be stored. If null a new instance is created. Modified.- Returns:
- The inverse transform.
-
reset
public void reset()Description copied from interface:InvertibleTransform
Sets the transform to its initial state of no transform.- Specified by:
reset
in interfaceInvertibleTransform<Homography2D_F32>
-
ddrm
public org.ejml.data.FMatrixRMaj ddrm() -
ddrm
public org.ejml.data.FMatrixRMaj ddrm(@Nullable @Nullable org.ejml.data.FMatrixRMaj output) -
copy
- Specified by:
copy
in interfaceorg.ejml.data.Matrix
- Overrides:
copy
in classorg.ejml.data.FMatrix3x3
-
toString
-