|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.grocottlab.atlas_toolkit.OrthogonalTransformSequence
public class OrthogonalTransformSequence
A class for storing a sequence of orthogonal 2D transformation coefficients generated by bUnwarpJ. To transform 3D (XYZ) image stack, a set of 2D transformation coefficients is applied in each of three orthogonal planes (e.g. XY, YZ, ZX). Transformation can be initiated in any plane, and three orthogonal transformations are applied per iteration. The class also provides methods for saving and re-opening the orthogonal transform sequence.
Nested Class Summary | |
---|---|
static class |
OrthogonalTransformSequence.OrthogonalPlane
|
Constructor Summary | |
---|---|
OrthogonalTransformSequence(OrthogonalTransform[][] ot,
int[] dimensions)
Constructor. |
Method Summary | |
---|---|
double[][] |
getCoefficientsX(OrthogonalTransformSequence.OrthogonalPlane orthoplane,
int iteration)
Gets the X coefficients of the 2D (XY) transform for the specified orthogonal plane and iteration. |
double[][] |
getCoefficientsY(OrthogonalTransformSequence.OrthogonalPlane orthoplane,
int iteration)
Gets the Y coefficients of the 2D (XY) transform for the specified orthogonal plane and iteration. |
int[] |
getDimensions()
|
int |
getIntervals(OrthogonalTransformSequence.OrthogonalPlane orthoplane,
int iteration)
|
int |
getIterations()
Gets the number of iterations in this OrthogonalTransformSequence. |
OrthogonalTransform |
getOrthogonalTransform(OrthogonalTransformSequence.OrthogonalPlane orthoplane,
int iteration)
Gets the transformation coefficients (as an OrthogonalTransform object) for the given orthogonal plane and iteration. |
static OrthogonalTransformSequence |
openOTS(String path)
Generates an OrthogonalTransformSequence object from a previously saved ".ots" file. |
void |
saveToFile(String path)
Saves this OrthogonalTransformSequence object to an ".ots" file. |
void |
setOrthogonalTransform(OrthogonalTransform ot,
OrthogonalTransformSequence.OrthogonalPlane orthoplane,
int iteration)
Sets the transformation coefficients (as an OrthogonalTransform object) for the given orthogonal plane and iteration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrthogonalTransformSequence(OrthogonalTransform[][] ot, int[] dimensions)
ot
- A 2D array of OrthogonalTransform objects, each containing a set of 2D transformation coefficients generated by bUnwarpJ. dimensions
- Method Detail |
---|
public static OrthogonalTransformSequence openOTS(String path)
path
- The absolute file path.
public void setOrthogonalTransform(OrthogonalTransform ot, OrthogonalTransformSequence.OrthogonalPlane orthoplane, int iteration)
ot
- OrthogonalTransform object containing transformation coefficients for a single plane.orthoplane
- Specifies the orthogonal plane for these coefficients as defined by the Enum OrthogonalTransformSequence.OrthogonalPlane.iteration
- Specifies the iteration number.public OrthogonalTransform getOrthogonalTransform(OrthogonalTransformSequence.OrthogonalPlane orthoplane, int iteration)
orthoplane
- Specifies the orthogonal plane for these coefficients as defined by the Enum OrthogonalTransformSequence.OrthogonalPlane.iteration
- Specifies the iteration number.
public double[][] getCoefficientsX(OrthogonalTransformSequence.OrthogonalPlane orthoplane, int iteration)
orthoplane
- Specifies the orthogonal plane for these coefficients as defined by the Enum OrthogonalTransformSequence.OrthogonalPlane.iteration
- Specifies the iteration number.
public double[][] getCoefficientsY(OrthogonalTransformSequence.OrthogonalPlane orthoplane, int iteration)
orthoplane
- Specifies the orthogonal plane for these coefficients as defined by the Enum OrthogonalTransformSequence.OrthogonalPlane.iteration
- Specifies the iteration number.
public int getIntervals(OrthogonalTransformSequence.OrthogonalPlane orthoplane, int iteration)
public int getIterations()
public int[] getDimensions()
public void saveToFile(String path)
path
- The absolute file path.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |