| java.lang.Object com.sun.media.jai.util.PolyWarpSolver
PolyWarpSolver | public class PolyWarpSolver (Code) | | A utility class to fit a polynomial to a set of corresponding
points in the source and destination images of a warp. The core is
based on a public-domain Fortran utility routine for singular-value
decomposition.
since: EA2 |
Method Summary | |
public static float[] | getCoeffs(float[] sourceCoords, int sourceOffset, float[] destCoords, int destOffset, int numCoords, float preScaleX, float preScaleY, float postScaleX, float postScaleY, int degree) Parameters: sourceCoords - a double array containing the source coordinatesx_0, y_0, x_1, y_1, ... Parameters: destCoords - a double array containing the source coordinatesx_0, y_0, x_1, y_1, ... | public static void | main(String[] args) | public static double[][] | matmul_t(double[][] A, double[][] B) |
getCoeffs | public static float[] getCoeffs(float[] sourceCoords, int sourceOffset, float[] destCoords, int destOffset, int numCoords, float preScaleX, float preScaleY, float postScaleX, float postScaleY, int degree)(Code) | | Parameters: sourceCoords - a double array containing the source coordinatesx_0, y_0, x_1, y_1, ... Parameters: destCoords - a double array containing the source coordinatesx_0, y_0, x_1, y_1, ... the best-fit coefficients for a bivariate polynomial of thegiven degree mapping the destination points into the sourcepoints. The coefficients for the X polynomial are returnedfirst, followed by those for the Y polynomial. |
matmul_t | public static double[][] matmul_t(double[][] A, double[][] B)(Code) | | |
|
|