Package net.imglib2.transform
Class InverseTransform
- java.lang.Object
-
- net.imglib2.transform.InverseTransform
-
- All Implemented Interfaces:
InvertibleTransform,Transform
public final class InverseTransform extends java.lang.Object implements InvertibleTransform
Final implementation of the inverse of anInvertibleTransformthat simply replaces apply by applyInverse and conversely. The originalInvertibleTransformis returned oninverse().
-
-
Field Summary
Fields Modifier and Type Field Description private InvertibleTransforminverse
-
Constructor Summary
Constructors Constructor Description InverseTransform(InvertibleTransform transform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(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.InvertibleTransforminverse()Get the inverse transform.intnumSourceDimensions()Returns n, the dimension of the source vector.intnumTargetDimensions()Returns m, the dimension of the target vector.
-
-
-
Field Detail
-
inverse
private final InvertibleTransform inverse
-
-
Constructor Detail
-
InverseTransform
public InverseTransform(InvertibleTransform transform)
-
-
Method Detail
-
numSourceDimensions
public int numSourceDimensions()
Description copied from interface:TransformReturns n, the dimension of the source vector.- Specified by:
numSourceDimensionsin interfaceTransform- Returns:
- the dimension of the source vector.
-
numTargetDimensions
public int numTargetDimensions()
Description copied from interface:TransformReturns m, the dimension of the target vector.- Specified by:
numTargetDimensionsin interfaceTransform- Returns:
- the dimension of the target vector.
-
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
public void apply(Localizable source, Positionable target)
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
public void applyInverse(Positionable source, Localizable target)
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.
-
inverse
public InvertibleTransform inverse()
Description copied from interface:InvertibleTransformGet the inverse transform.- Specified by:
inversein interfaceInvertibleTransform- Returns:
- the inverse transform
-
-