C# 클래스 SharpMap.Utilities.LeastSquaresTransform

Calculates Affine and Helmert transformation using Least-Squares Regression of input and output points
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox

공개 메소드들

메소드 설명
AddInputOutputPoint ( SharpMap input, SharpMap output ) : void

Adds an input and output value pair to the collection

GetAffineTransformation ( ) : double[]

Return an array with the six affine transformation parameters {a,b,c,d,e,f} and the sum of the squares of the residuals (s0)

a,b defines scale vector 1 of coordinate system, d,e scale vector 2. c,f defines offset.

Converting from input (X,Y) to output coordinate system (X',Y') is done by: X' = a*X + b*Y + c, Y' = d*X + e*Y + f

Transformation based on Mikhail "Introduction to Modern Photogrammetry" p. 399-300. Extended to arbitrary number of measurements by M. Nielsen

GetHelmertTransformation ( ) : double[]

Calculates the four helmert transformation parameters {a,b,c,d} and the sum of the squares of the residuals (s0)

a,b defines scale vector 1 of coordinate system, d,e scale vector 2. c,f defines offset.

Converting from input (X,Y) to output coordinate system (X',Y') is done by: X' = a*X + b*Y + c, Y' = -b*X + a*Y + d

This is a transformation initially based on the affine transformation but slightly simpler.

GetInputPoint ( int i ) : SharpMap.Geometries.Point

Gets the input point value at the specified index

GetOutputPoint ( int i ) : SharpMap.Geometries.Point

Gets the output point value at the specified index

LeastSquaresTransform ( ) : System

Initialize Least Squares transformations

RemoveInputOutputPointAt ( int i ) : void

Removes input and output value pair at the specified index

SetInputPointAt ( SharpMap p, int i ) : void

Sets the input point value at the specified index

SetOutputPointAt ( SharpMap p, int i ) : void

Sets the output point value at the specified index

비공개 메소드들

메소드 설명
CreateMatrix ( int n, int m ) : double[][]

Creates an n x m matrix of doubles

메소드 상세

AddInputOutputPoint() 공개 메소드

Adds an input and output value pair to the collection
public AddInputOutputPoint ( SharpMap input, SharpMap output ) : void
input SharpMap
output SharpMap
리턴 void

GetAffineTransformation() 공개 메소드

Return an array with the six affine transformation parameters {a,b,c,d,e,f} and the sum of the squares of the residuals (s0)
a,b defines scale vector 1 of coordinate system, d,e scale vector 2. c,f defines offset.

Converting from input (X,Y) to output coordinate system (X',Y') is done by: X' = a*X + b*Y + c, Y' = d*X + e*Y + f

Transformation based on Mikhail "Introduction to Modern Photogrammetry" p. 399-300. Extended to arbitrary number of measurements by M. Nielsen

public GetAffineTransformation ( ) : double[]
리턴 double[]

GetHelmertTransformation() 공개 메소드

Calculates the four helmert transformation parameters {a,b,c,d} and the sum of the squares of the residuals (s0)

a,b defines scale vector 1 of coordinate system, d,e scale vector 2. c,f defines offset.

Converting from input (X,Y) to output coordinate system (X',Y') is done by: X' = a*X + b*Y + c, Y' = -b*X + a*Y + d

This is a transformation initially based on the affine transformation but slightly simpler.

public GetHelmertTransformation ( ) : double[]
리턴 double[]

GetInputPoint() 공개 메소드

Gets the input point value at the specified index
public GetInputPoint ( int i ) : SharpMap.Geometries.Point
i int index
리턴 SharpMap.Geometries.Point

GetOutputPoint() 공개 메소드

Gets the output point value at the specified index
public GetOutputPoint ( int i ) : SharpMap.Geometries.Point
i int index
리턴 SharpMap.Geometries.Point

LeastSquaresTransform() 공개 메소드

Initialize Least Squares transformations
public LeastSquaresTransform ( ) : System
리턴 System

RemoveInputOutputPointAt() 공개 메소드

Removes input and output value pair at the specified index
public RemoveInputOutputPointAt ( int i ) : void
i int
리턴 void

SetInputPointAt() 공개 메소드

Sets the input point value at the specified index
public SetInputPointAt ( SharpMap p, int i ) : void
p SharpMap Point value
i int index
리턴 void

SetOutputPointAt() 공개 메소드

Sets the output point value at the specified index
public SetOutputPointAt ( SharpMap p, int i ) : void
p SharpMap Point value
i int index
리턴 void