public class BigWarpUtils extends Object
Constructor and Description |
---|
BigWarpUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
det(AffineTransform3D xfm) |
static double |
dotXy(AffineTransform3D xfm) |
static void |
ensurePositiveDeterminant(AffineTransform3D xfm) |
static void |
ensurePositiveZ(AffineTransform3D xfm) |
static void |
flipX(AffineTransform3D xfm) |
static AffineTransform3D |
initTransform(int viewerWidth,
int viewerHeight,
boolean zoomedIn,
ViewerState state)
Get a "good" initial viewer transform for 2d.
|
static void |
initTransform(ViewerPanel viewer)
Set a "good" initial viewer transform.
|
static void |
normalize(double[] x) |
static void |
permuteXY(AffineTransform3D xfm) |
static double |
quaternionAngle(double[] q1,
double[] q2)
Computes the angle of rotation between the two input quaternions,
returning the result in radians.
|
public static void initTransform(ViewerPanel viewer)
initTransform(int, int, boolean, ViewerState)
, using the size
of the viewer's display component.viewer
- the viewer (containing at least one source) to have its
transform set.public static void ensurePositiveZ(AffineTransform3D xfm)
public static void ensurePositiveDeterminant(AffineTransform3D xfm)
public static double det(AffineTransform3D xfm)
public static double dotXy(AffineTransform3D xfm)
public static void flipX(AffineTransform3D xfm)
public static void permuteXY(AffineTransform3D xfm)
public static AffineTransform3D initTransform(int viewerWidth, int viewerHeight, boolean zoomedIn, ViewerState state)
viewerWidth
- width of the viewer displayviewerHeight
- height of the viewer displaystate
- the ViewerState
containing at least one source.public static double quaternionAngle(double[] q1, double[] q2)
q1
- first quaternionq2
- second quaternionpublic static void normalize(double[] x)
Copyright © 2015–2021 Fiji. All rights reserved.