mpicbg.models
Class InverseCoordinateTransformMap2D

java.lang.Object
  extended by mpicbg.models.InverseCoordinateTransformMap2D
All Implemented Interfaces:
Serializable, InverseCoordinateTransform

public class InverseCoordinateTransformMap2D
extends Object
implements InverseCoordinateTransform

An InverseCoordinateTransform that is saved as a LUT on integer coordinates.

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
protected  int height
           
protected  float[][] map
          target coordinates addressed interleaved as map[ row ][ 2 * column ] = x map[ row ][ 2 * column + 1 ] = y
protected  int width
           
 
Constructor Summary
InverseCoordinateTransformMap2D(FileInputStream fis)
           
InverseCoordinateTransformMap2D(float[][] map)
           
InverseCoordinateTransformMap2D(InverseCoordinateTransform t, int width, int height)
           
 
Method Summary
 double[] applyInverse(double[] location)
          Apply the inverse of the model to a point location
 void applyInverseInPlace(double[] location)
          apply the inverse of the model to a point location
 void export(FileOutputStream fos)
           
 int getHeight()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected final float[][] map
target coordinates addressed interleaved as map[ row ][ 2 * column ] = x map[ row ][ 2 * column + 1 ] = y


width

protected final int width

height

protected final int height
Constructor Detail

InverseCoordinateTransformMap2D

public InverseCoordinateTransformMap2D(float[][] map)

InverseCoordinateTransformMap2D

public InverseCoordinateTransformMap2D(InverseCoordinateTransform t,
                                       int width,
                                       int height)

InverseCoordinateTransformMap2D

public InverseCoordinateTransformMap2D(FileInputStream fis)
                                throws IOException
Throws:
IOException
Method Detail

getWidth

public final int getWidth()

getHeight

public final int getHeight()

export

public void export(FileOutputStream fos)
            throws IOException
Throws:
IOException

applyInverse

public double[] applyInverse(double[] location)
Description copied from interface: InverseCoordinateTransform
Apply the inverse of the model to a point location

Specified by:
applyInverse in interface InverseCoordinateTransform
Returns:
transformed point

applyInverseInPlace

public void applyInverseInPlace(double[] location)
Description copied from interface: InverseCoordinateTransform
apply the inverse of the model to a point location

Specified by:
applyInverseInPlace in interface InverseCoordinateTransform


Copyright © 2007-2016 Fiji. All Rights Reserved.