Package net.imglib2.transform.integer
Class TranslationTransform.InverseTranslationTransform
java.lang.Object
net.imglib2.transform.integer.AbstractMixedTransform
net.imglib2.transform.integer.TranslationTransform.InverseTranslationTransform
- All Implemented Interfaces:
Concatenable<Translation>,PreConcatenable<Translation>,BoundingBoxTransform,Mixed,Translation,InvertibleTransform,Transform
- Enclosing class:
TranslationTransform
public class TranslationTransform.InverseTranslationTransform
extends AbstractMixedTransform
implements Translation, Concatenable<Translation>, PreConcatenable<Translation>
-
Field Summary
Fields inherited from class net.imglib2.transform.integer.AbstractMixedTransform
numTargetDimensions -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(int[] source, int[] target) Apply theTransformto a source vector to obtain a target vector.voidapply(long[] source, long[] target) Apply theTransformto a source vector to obtain a target vector.voidapply(Localizable source, Positionable target) voidapplyInverse(int[] source, int[] target) Apply the inverse transform to a target vector to obtain a source vector.voidapplyInverse(long[] source, long[] target) Apply the inverse transform to a target vector to obtain a source vector.voidapplyInverse(Positionable source, Localizable target) Apply the inverse transform to a targetLocalizableto obtain a sourcePositionable.Concatenate this object with a.double[][]Get the matrix that transforms homogeneous source points to homogeneous target points.longgetTranslation(int d) Get the d-th component of translation (seeMixed.getTranslation(long[])).voidgetTranslation(long[] t) Get the translation.inverse()Get the inverse transform.Pre-concatenate this object with a.Methods inherited from class net.imglib2.transform.integer.AbstractMixedTransform
getComponentInversion, getComponentInversion, getComponentMapping, getComponentMapping, getComponentZero, getComponentZero, numSourceDimensions, numTargetDimensions, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.imglib2.transform.integer.BoundingBoxTransform
transformMethods inherited from interface net.imglib2.transform.integer.Mixed
getComponentInversion, getComponentInversion, getComponentMapping, getComponentMapping, getComponentZero, getComponentZeroMethods inherited from interface net.imglib2.transform.Transform
numSourceDimensions, numTargetDimensions
-
Method Details
-
apply
public void apply(long[] source, long[] target) Description copied from interface:TransformApply theTransformto a source vector to obtain a target vector. -
apply
public void apply(int[] source, int[] target) Description copied from interface:TransformApply theTransformto a source vector to obtain a target vector. -
apply
Description copied from interface:Transform -
applyInverse
public void applyInverse(long[] source, long[] target) Description copied from interface:InvertibleTransformApply the inverse transform to a target vector to obtain a source vector.- Specified by:
applyInversein interfaceInvertibleTransform- Parameters:
source- set this to the source coordinates.target- target coordinates.
-
applyInverse
public void applyInverse(int[] source, int[] target) Description copied from interface:InvertibleTransformApply the inverse transform to a target vector to obtain a source vector.- Specified by:
applyInversein interfaceInvertibleTransform- Parameters:
source- set this to the source coordinates.target- target coordinates.
-
applyInverse
Description copied from interface:InvertibleTransformApply the inverse transform to a targetLocalizableto obtain a sourcePositionable.- Specified by:
applyInversein interfaceInvertibleTransform- Parameters:
source- set this to the source coordinates.target- target coordinates.
-
getMatrix
public double[][] getMatrix()Description copied from interface:MixedGet the matrix that transforms homogeneous source points to homogeneous target points. For testing purposes. -
inverse
Description copied from interface:InvertibleTransformGet the inverse transform.- Specified by:
inversein interfaceInvertibleTransform- Returns:
- the inverse transform
-
getTranslation
public void getTranslation(long[] t) Description copied from interface:MixedGet the translation. Translation is added to the target vector after applying permutation, projection, inversion operations.- Specified by:
getTranslationin interfaceMixed- Overrides:
getTranslationin classAbstractMixedTransform- Parameters:
t- array of size at least the target dimension to store the result.
-
getTranslation
public long getTranslation(int d) Description copied from interface:MixedGet the d-th component of translation (seeMixed.getTranslation(long[])).- Specified by:
getTranslationin interfaceMixed- Overrides:
getTranslationin classAbstractMixedTransform- Parameters:
d-
-
concatenate
Description copied from interface:ConcatenableConcatenate this object with a. The result will be an object that can be concatenated with another A. The conventional meaning for concatenating transformations is the following: Let ba = b.concatenate(a). Applying ba to x is equivalent to first applying a to x and then applying b to the result.- Specified by:
concatenatein interfaceConcatenable<Translation>
-
getConcatenableClass
- Specified by:
getConcatenableClassin interfaceConcatenable<Translation>
-
preConcatenate
Description copied from interface:PreConcatenablePre-concatenate this object with a. The result will be an object that can be pre-concatenated with another A. The conventional meaning for concatenating transformations is the following: Let ba = a.preConcatenate(b). Applying ba to x is equivalent to first applying a to x and then applying b to the result.- Specified by:
preConcatenatein interfacePreConcatenable<Translation>
-
getPreConcatenableClass
- Specified by:
getPreConcatenableClassin interfacePreConcatenable<Translation>
-