public class FastMatrix extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
a00 |
protected double |
a01 |
protected double |
a02 |
protected double |
a03 |
protected double |
a10 |
protected double |
a11 |
protected double |
a12 |
protected double |
a13 |
protected double |
a20 |
protected double |
a21 |
protected double |
a22 |
protected double |
a23 |
double |
x |
double |
y |
double |
z |
Constructor and Description |
---|
FastMatrix() |
FastMatrix(double f) |
FastMatrix(double[][] m) |
FastMatrix(FastMatrix f) |
Modifier and Type | Method and Description |
---|---|
static double |
angleBetween(double[] v1,
double[] v2) |
void |
apply(double[] p) |
void |
apply(double x,
double y,
double z) |
void |
apply(Point3d p) |
void |
applyWithoutTranslation(double x,
double y,
double z) |
void |
applyWithoutTranslation(Point3d p) |
static FastMatrix |
average(FastMatrix[] array) |
static FastMatrix |
bestLinear(Point3d[] x,
Point3d[] y) |
static FastMatrix |
bestRigid(Point3d[] set1,
Point3d[] set2)
Find the best rigid transformation from set1 to set2.
|
static FastMatrix |
bestRigid(Point3d[] set1,
Point3d[] set2,
boolean allowScaling) |
FastMatrix |
composeWith(FastMatrix followedBy) |
FastMatrix |
copyFrom(FloatMatrix f) |
void |
copyToFlatDoubleArray(double[] result) |
static double[] |
crossProduct(double[] a,
double[] b) |
FastMatrix[] |
decompose() |
double |
det() |
static double |
dotProduct(double[] a,
double[] b) |
boolean |
equals(FastMatrix other) |
static FastMatrix |
fromCalibration(ij.ImagePlus image) |
Point3d |
getResult() |
void |
guessEulerParameters(double[] parameters) |
void |
guessEulerParameters(double[] parameters,
Point3d center) |
FastMatrix |
inverse() |
boolean |
isIdentity() |
boolean |
isIdentity(double eps) |
boolean |
isJustTranslation() |
static void |
main(String[] args) |
static double[] |
normalize(double[] a) |
boolean |
noTranslation() |
static FastMatrix[] |
parseMatrices(String m) |
static FastMatrix |
parseMatrix(String m) |
FastMatrix |
plus(FastMatrix other) |
String |
resultToString() |
static FastMatrix |
rotate(double angle,
int axis) |
static FastMatrix |
rotateAround(double nx,
double ny,
double nz,
double angle) |
static FastMatrix |
rotateEuler(double a1,
double a2,
double a3) |
static FastMatrix |
rotateEulerAt(double a1,
double a2,
double a3,
double cx,
double cy,
double cz) |
static FastMatrix |
rotateFromTo(double aX,
double aY,
double aZ,
double bX,
double bY,
double bZ) |
static FastMatrix |
rotateToAlignVectors(double[] v2_template,
double[] v1_template,
double[] v2_domain,
double[] v1_domain) |
double[] |
rowwise16() |
FastMatrix |
scale(double x,
double y,
double z) |
void |
setFromFlatDoubleArray(double[] result) |
static double |
size(double[] a) |
static double |
sizeSquared(double[] a) |
FastMatrix |
times(FastMatrix o) |
String |
toString() |
String |
toStringForAmira() |
String |
toStringIndented(String indent) |
static FastMatrix |
translate(double x,
double y,
double z) |
static FastMatrix |
translateToCenter(ij.ImagePlus image) |
public double x
public double y
public double z
protected double a00
protected double a01
protected double a02
protected double a03
protected double a10
protected double a11
protected double a12
protected double a13
protected double a20
protected double a21
protected double a22
protected double a23
public FastMatrix()
public FastMatrix(double f)
public FastMatrix(double[][] m)
public FastMatrix(FastMatrix f)
public FastMatrix copyFrom(FloatMatrix f)
public boolean isJustTranslation()
public boolean noTranslation()
public FastMatrix composeWith(FastMatrix followedBy)
public FastMatrix[] decompose()
public FastMatrix plus(FastMatrix other)
public void apply(double x, double y, double z)
public void apply(Point3d p)
public void apply(double[] p)
public void applyWithoutTranslation(double x, double y, double z)
public void applyWithoutTranslation(Point3d p)
public Point3d getResult()
public FastMatrix scale(double x, double y, double z)
public FastMatrix times(FastMatrix o)
public double det()
public FastMatrix inverse()
public static FastMatrix rotate(double angle, int axis)
public static FastMatrix rotateFromTo(double aX, double aY, double aZ, double bX, double bY, double bZ)
public static double dotProduct(double[] a, double[] b)
public static double sizeSquared(double[] a)
public static double size(double[] a)
public static double angleBetween(double[] v1, double[] v2)
public static double[] crossProduct(double[] a, double[] b)
public static double[] normalize(double[] a)
public static FastMatrix rotateToAlignVectors(double[] v2_template, double[] v1_template, double[] v2_domain, double[] v1_domain)
public static FastMatrix rotateAround(double nx, double ny, double nz, double angle)
public static FastMatrix rotateEuler(double a1, double a2, double a3)
public static FastMatrix rotateEulerAt(double a1, double a2, double a3, double cx, double cy, double cz)
public void guessEulerParameters(double[] parameters)
public void guessEulerParameters(double[] parameters, Point3d center)
public static FastMatrix translate(double x, double y, double z)
public static FastMatrix bestLinear(Point3d[] x, Point3d[] y)
public static FastMatrix bestRigid(Point3d[] set1, Point3d[] set2)
public static FastMatrix bestRigid(Point3d[] set1, Point3d[] set2, boolean allowScaling)
public static FastMatrix average(FastMatrix[] array)
public double[] rowwise16()
public static FastMatrix parseMatrix(String m)
public static FastMatrix[] parseMatrices(String m)
public static FastMatrix fromCalibration(ij.ImagePlus image)
public static FastMatrix translateToCenter(ij.ImagePlus image)
public final boolean isIdentity()
public final boolean equals(FastMatrix other)
public final boolean isIdentity(double eps)
public void copyToFlatDoubleArray(double[] result)
public void setFromFlatDoubleArray(double[] result)
public String resultToString()
public String toStringForAmira()
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.