Package boofcv.alg.geo
Class NormalizationPoint2D
java.lang.Object
boofcv.alg.geo.NormalizationPoint2D
Describes how to normalize a set of points such that they have zero mean and variance. This is equivalent
to applying the matrix below. Normalization is often needed as a preprocessing step for solving linear equations.
Greatly reduces bias and numerical errors.
N = [ 1/σ_x 0 -μ_x/σ_x ]
[ 0 1/σ_y 0 -μ_y/σ_y ]
[ 0 0 1 ]
Y. Ma, S. Soatto, J. Kosecka, and S. S. Sastry, "An Invitation to 3-D Vision" Springer-Verlad, 2004
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ConicGeneral_F64 p, ConicGeneral_F64 output) C* = H'*C*Hvoidapply(Point2D_F64 p, Point2D_F64 output) voidapply(Point3D_F64 p, Point3D_F64 output) voidapply(DMatrix3x3 C, DMatrix3x3 output) Apply transform to conic in 3x3 matrix format.voidapply(DMatrixRMaj H, DMatrixRMaj output) Applies normalization to a H=3xN matrix out = Norm*HbooleanisEquals(NormalizationPoint2D a, double tol) matrix(@Nullable DMatrixRMaj M) matrix3(@Nullable DMatrix3x3 M) matrixInv(@Nullable DMatrixRMaj M) voidremove(ConicGeneral_F64 p, ConicGeneral_F64 output) voidremove(Point2D_F64 p, Point2D_F64 output) voidremove(Point3D_F64 p, Point3D_F64 output) voidremove(DMatrix3x3 C, DMatrix3x3 output) voidremove(DMatrixRMaj H, DMatrixRMaj output) Applies normalization to a H=3xN matrix out = Norm*Hvoidset(double meanX, double stdX, double meanY, double stdY)
-
Field Details
-
meanX
public double meanX -
stdX
public double stdX -
meanY
public double meanY -
stdY
public double stdY
-
-
Constructor Details
-
NormalizationPoint2D
public NormalizationPoint2D() -
NormalizationPoint2D
public NormalizationPoint2D(double meanX, double stdX, double meanY, double stdY)
-
-
Method Details
-
set
public void set(double meanX, double stdX, double meanY, double stdY) -
apply
Applies normalization to a H=3xN matrix out = Norm*H- Parameters:
H- 3xN matrix. Can be same as input matrix
-
remove
Applies normalization to a H=3xN matrix out = Norm*H- Parameters:
H- 3xN matrix. Can be same as input matrix
-
apply
-
apply
-
apply
C* = H'*C*H -
apply
Apply transform to conic in 3x3 matrix format. -
remove
-
remove
-
remove
-
remove
-
matrix
-
matrixInv
-
matrix3
-
matrixInv3
-
isEquals
-