mpicbg.models
Class InverseCoordinateTransformList<E extends InverseCoordinateTransform>

java.lang.Object
  extended by mpicbg.models.InverseCoordinateTransformList<E>
All Implemented Interfaces:
Serializable, InverseBoundable, InverseCoordinateTransform, TransformList<E>

public class InverseCoordinateTransformList<E extends InverseCoordinateTransform>
extends Object
implements InverseBoundable, TransformList<E>

TODO Think about if it should really implement InverseBoundable. There is no adequate solution for estimating the bounding box correctly instead of approximative as implemented here.

Author:
Stephan Saalfeld
See Also:
Serialized Form

Constructor Summary
InverseCoordinateTransformList()
           
 
Method Summary
 void add(E t)
           
 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 clear()
           
 void estimateInverseBounds(double[] min, double[] max)
          Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.
 E get(int i)
           
 List<E> getList(List<E> preAllocatedList)
           
 void remove(E t)
           
 E remove(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InverseCoordinateTransformList

public InverseCoordinateTransformList()
Method Detail

add

public final void add(E t)
Specified by:
add in interface TransformList<E extends InverseCoordinateTransform>

remove

public final void remove(E t)
Specified by:
remove in interface TransformList<E extends InverseCoordinateTransform>

remove

public final E remove(int i)
Specified by:
remove in interface TransformList<E extends InverseCoordinateTransform>

get

public final E get(int i)
Specified by:
get in interface TransformList<E extends InverseCoordinateTransform>

clear

public final void clear()
Specified by:
clear in interface TransformList<E extends InverseCoordinateTransform>

getList

public final List<E> getList(List<E> preAllocatedList)
Specified by:
getList in interface TransformList<E extends InverseCoordinateTransform>

applyInverse

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

Specified by:
applyInverse in interface InverseCoordinateTransform
Returns:
transformed point
Throws:
NoninvertibleModelException

applyInverseInPlace

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

Specified by:
applyInverseInPlace in interface InverseCoordinateTransform
Throws:
NoninvertibleModelException

estimateInverseBounds

public void estimateInverseBounds(double[] min,
                                  double[] max)
                           throws NoninvertibleModelException
Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors. Estimate the bounds approximately by iteration over a fixed grid of exemplary locations. TODO Find a better solution.

Specified by:
estimateInverseBounds in interface InverseBoundable
Throws:
NoninvertibleModelException


Copyright © 2007-2016 Fiji. All Rights Reserved.