javamorph
Class CGeo

java.lang.Object
  extended by javamorph.CGeo

public class CGeo
extends Object

Version:
1.1
Author:
claus.erhard.wimmer@googlemail.com
Program: JavaMorph V 1.1.
Class: CGeo.
License: GPLv2.
Description: Helper class for geometric calculations.
Handle interpolation - transformation. Triangulation now done by CTriangulation.

Constructor Summary
CGeo()
           
 
Method Summary
static Point getOrigin_(Point result, CTransform trafo)
          Transform one point from the result matrix to the one point of the input matrix.
static CTransform getTrafo(CTriangle origin_, CTriangle result)
          Provide reverse transformation matrix from one result triangle to one input picture triangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CGeo

public CGeo()
Method Detail

getTrafo

public static CTransform getTrafo(CTriangle origin_,
                                  CTriangle result)
Provide reverse transformation matrix from one result triangle to one input picture triangle. All three points of the two triangles correspond.

Parameters:
origin_ - One triangle of the source picture.
result - One triangle of the result picture.
Returns:
Floating point transformation matrix. Indexes are row / column.

getOrigin_

public static Point getOrigin_(Point result,
                               CTransform trafo)
Transform one point from the result matrix to the one point of the input matrix.

Parameters:
result - Point of the result picture.
trafo - Transformation matrix.
Returns:
Corresponding point of the input picture.