georegression.struct.homography
Class Homography2D_F64
- java.lang.Object
-
- georegression.struct.Matrix3x3_F64
-
- georegression.struct.homography.Homography2D_F64
-
- All Implemented Interfaces:
- Homography<Homography2D_F64>, InvertibleTransform<Homography2D_F64>, java.io.Serializable
public class Homography2D_F64 extends Matrix3x3_F64 implements Homography<Homography2D_F64>
Describes a homography transform in 2D.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Homography2D_F64()Homography2D_F64(double a11, double a12, double a13, double a21, double a22, double a23, double a31, double a32, double a33)Homography2D_F64(Homography2D_F64 a)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Homography2D_F64concat(Homography2D_F64 second, Homography2D_F64 ret)Computes a transform which is the equivalent to applying 'this' then the 'second' transform.Homography2D_F64copy()Homography2D_F64createInstance()Creates a new instance of the same SpecialEuclidean as this class.doubleget(int row, int col)intgetDimension()Returns the dimension of the space which this transform operates on.Homography2D_F64invert(Homography2D_F64 ret)Computes a transform which is the inverse of this transform.voidreset()Sets the transform to its initial state of no transform.voidset(Homography2D_F64 target)Assigns 'this' to the value of target.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Homography2D_F64
public Homography2D_F64(double a11, double a12, double a13, double a21, double a22, double a23, double a31, double a32, double a33)
-
Homography2D_F64
public Homography2D_F64(Homography2D_F64 a)
-
Homography2D_F64
public Homography2D_F64()
-
-
Method Detail
-
getDimension
public int getDimension()
Description copied from interface:InvertibleTransformReturns the dimension of the space which this transform operates on.- Specified by:
getDimensionin interfaceInvertibleTransform<Homography2D_F64>- Returns:
- space's dimension
-
createInstance
public Homography2D_F64 createInstance()
Description copied from interface:InvertibleTransformCreates a new instance of the same SpecialEuclidean as this class.- Specified by:
createInstancein interfaceInvertibleTransform<Homography2D_F64>- Returns:
- A new instance.
-
set
public void set(Homography2D_F64 target)
Description copied from interface:InvertibleTransformAssigns 'this' to the value of target.- Specified by:
setin interfaceInvertibleTransform<Homography2D_F64>- Parameters:
target- The new value of 'this'.
-
concat
public Homography2D_F64 concat(Homography2D_F64 second, Homography2D_F64 ret)
Description copied from interface:InvertibleTransformComputes 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:
concatin interfaceInvertibleTransform<Homography2D_F64>- 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
public Homography2D_F64 invert(Homography2D_F64 ret)
Description copied from interface:InvertibleTransformComputes 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:
invertin interfaceInvertibleTransform<Homography2D_F64>- 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:InvertibleTransformSets the transform to its initial state of no transform.- Specified by:
resetin interfaceInvertibleTransform<Homography2D_F64>
-
get
public double get(int row, int col)
-
copy
public Homography2D_F64 copy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG