com.grocottlab.atlas_toolkit
Class OrthogonalTransform

java.lang.Object
  extended by com.grocottlab.atlas_toolkit.OrthogonalTransform
All Implemented Interfaces:
Serializable

public class OrthogonalTransform
extends Object
implements Serializable

A class for holding 2D (XY) transformation coefficients as generated by bUnwarpJ. The OrthogonalTransformSequence class contains a number of instances of OrthogonalTransform, one for each orthogonal plane in each iteration.

See Also:
Serialized Form

Constructor Summary
OrthogonalTransform(double[][] x_coefficients, double[][] y_coefficients, int intervals)
           
OrthogonalTransform(Transformation transform)
           
 
Method Summary
static OrthogonalTransform computeAverageTransform(OrthogonalTransform[] ot)
          Calculates the mean average X and Y coefficients from a set of OrthogonalTransform objects.
 double[][] getCoefficientsX()
          Gets the X coefficients generated by bUnwarpJ.
 double[][] getCoefficientsY()
          Gets the Y coefficients generated by bUnwarpJ.
 int getIntervals()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrthogonalTransform

public OrthogonalTransform(double[][] x_coefficients,
                           double[][] y_coefficients,
                           int intervals)
Parameters:
x_coefficients - A double[][] containing the X coefficients generated by bUnwarpJ.
y_coefficients - A double[][] containing the Y coefficients generated by bUnwarpJ.
intervals -

OrthogonalTransform

public OrthogonalTransform(Transformation transform)
Parameters:
transform - An instance of bunwarpj.Transformation
Method Detail

computeAverageTransform

public static OrthogonalTransform computeAverageTransform(OrthogonalTransform[] ot)
Calculates the mean average X and Y coefficients from a set of OrthogonalTransform objects. By calculating the mean coefficients for a group of pairwise transforms, a number of 2D images can be registered in group-wise fashion.

Parameters:
ot - A set of OrthogonalTransform objects to be averaged.
Returns:
A single OrthogonalTransform object containing the mean average X and Y coefficients.

getCoefficientsX

public double[][] getCoefficientsX()
Gets the X coefficients generated by bUnwarpJ.

Returns:
A double[][] containing the X coefficients.

getCoefficientsY

public double[][] getCoefficientsY()
Gets the Y coefficients generated by bUnwarpJ.

Returns:
A double[][] containing the X coefficients.

getIntervals

public int getIntervals()


Copyright © 2009-2015 ImageJ. All Rights Reserved.