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