Click or drag to resize
Accord.NET (logo)

MatrixH Class

Encapsulates a 3-by-3 general transformation matrix that represents a (possibly) non-linear transform.
Inheritance Hierarchy
SystemObject
  Accord.ImagingMatrixH

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class MatrixH
Request Example View Source

The MatrixH type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyElements
Gets the elements of this matrix.
Public propertyIsAffine
Gets whether this is an Affine transformation matrix.
Public propertyIsIdentity
Gets whether this is the identity transformation.
Public propertyIsInvertible
Gets whether this matrix is invertible.
Public propertyOffsetX
Gets the offset x
Public propertyOffsetY
Gets the offset y
Top
Methods
  NameDescription
Public methodEquals
Compares two objects for equality.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverse
Returns the inverse matrix, if this matrix is invertible.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMultiply
Multiplies this matrix, returning a new matrix as result.
Public methodReset
Resets this matrix to be the identity.
Public methodToDoubleArray
Double[,] conversion.
Public methodToSingleArray
Single[,] conversion.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformPoints(PointF)
Transforms the given points using this transformation matrix.
Public methodTransformPoints(PointH)
Transforms the given points using this transformation matrix.
Public methodTranspose
Gets the transpose of this transformation matrix.
Top
Operators
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

Linear transformations are not the only ones that can be represented by matrices. Using homogeneous coordinates, both affine transformations and perspective projections on R^n can be represented as linear transformations on R^n+1 (that is, n+1-dimensional real projective space).

The general transformation matrix has 8 degrees of freedom, as the last element is just a scale parameter.

See Also