public class XfmUtils extends Object
Constructor and Description |
---|
XfmUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(double[] src,
float[] dest)
Copy from src to dest
|
static void |
copy(float[] src,
double[] dest)
Copy from src to dest
|
static double[][] |
deepCopy(double[][] in) |
static double |
distance(double[] p1,
double[] p2) |
static double[][] |
genPtListAffine(double[][] srcPts,
double[][] aff) |
static float[][] |
genPtListAffine(float[][] srcPts,
float[][] aff) |
static double[][] |
genPtListScale(double[][] srcPts,
double[] scales) |
static float[][] |
genPtListScale(float[][] srcPts,
double[] scales) |
static double |
maxError(double[][] sourcePoints,
double[][] targetPoints,
ThinPlateR2LogRSplineKernelTransform xfm) |
static double |
maxError(double[][] sourcePoints,
double[][] targetPoints,
ThinPlateR2LogRSplineKernelTransform xfm,
boolean debug) |
static String |
printArray(boolean[] in) |
static String |
printArray(double[] in) |
static String |
printArray(double[][] in) |
static String |
printArray(float[] in) |
static String |
printArray(float[][] in) |
static String |
printArray(long[] in) |
static String |
printArray(long[][] in) |
static double[] |
subtract(double[] p1,
double[] p2) |
static double[] |
subtract(double[] p1,
double[] p2,
double[] out) |
static double[] |
toDouble(float[] in) |
static float[] |
toFloat(double[] in) |
public static double[][] genPtListScale(double[][] srcPts, double[] scales)
public static float[][] genPtListScale(float[][] srcPts, double[] scales)
public static double[][] genPtListAffine(double[][] srcPts, double[][] aff)
public static float[][] genPtListAffine(float[][] srcPts, float[][] aff)
public static double maxError(double[][] sourcePoints, double[][] targetPoints, ThinPlateR2LogRSplineKernelTransform xfm)
public static double maxError(double[][] sourcePoints, double[][] targetPoints, ThinPlateR2LogRSplineKernelTransform xfm, boolean debug)
public static double[][] deepCopy(double[][] in)
public static double[] toDouble(float[] in)
public static float[] toFloat(double[] in)
public static void copy(float[] src, double[] dest)
src
- sourcedest
- destinationpublic static void copy(double[] src, float[] dest)
src
- sourcedest
- destinationpublic static double distance(double[] p1, double[] p2)
public static double[] subtract(double[] p1, double[] p2)
public static double[] subtract(double[] p1, double[] p2, double[] out)
public static final String printArray(double[][] in)
public static final String printArray(double[] in)
public static final String printArray(boolean[] in)
public static final String printArray(float[][] in)
public static final String printArray(float[] in)
public static final String printArray(long[][] in)
public static final String printArray(long[] in)
Copyright © 2015–2021 Fiji. All rights reserved.