Class SingleDimensionPermutationTransform
- java.lang.Object
-
- net.imglib2.transform.integer.permutation.AbstractPermutationTransform
-
- net.imglib2.transform.integer.permutation.SingleDimensionPermutationTransform
-
- All Implemented Interfaces:
InvertibleTransform,Transform
public class SingleDimensionPermutationTransform extends AbstractPermutationTransform
-
-
Field Summary
Fields Modifier and Type Field Description protected intdprotected intnumSourceDimensionsprotected intnumTargetDimensions-
Fields inherited from class net.imglib2.transform.integer.permutation.AbstractPermutationTransform
inverseLut, lut
-
-
Constructor Summary
Constructors Constructor Description SingleDimensionPermutationTransform(int[] lut, int numSourceDimensions, int numTargetDimensions, int d)
-
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.SingleDimensionPermutationTransforminverse()Get the inverse transform.intnumSourceDimensions()Returns n, the dimension of the source vector.intnumTargetDimensions()Returns m, the dimension of the target vector.-
Methods inherited from class net.imglib2.transform.integer.permutation.AbstractPermutationTransform
apply, applyChecked, applyInverse, applyInverseChecked, checkBijectivity, getInverseLutCopy, getLutCopy
-
-
-
-
Constructor Detail
-
SingleDimensionPermutationTransform
public SingleDimensionPermutationTransform(int[] lut, int numSourceDimensions, int numTargetDimensions, int d)- Parameters:
lut-numSourceDimensions- dimensionality of sourcenumTargetDimensions- dimensionality of targetd- dimension which shall be transformed. Must be smaller thannumSourceDimensionsandnumTargetDimensions
-
-
Method Detail
-
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.- 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.- 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.- Parameters:
source- set this to the source coordinates.target- target coordinates.
-
inverse
public SingleDimensionPermutationTransform inverse()
Description copied from interface:InvertibleTransformGet the inverse transform.- Returns:
- the inverse transform
-
numSourceDimensions
public int numSourceDimensions()
Description copied from interface:TransformReturns n, the dimension of the source vector.- Returns:
- the dimension of the source vector.
-
numTargetDimensions
public int numTargetDimensions()
Description copied from interface:TransformReturns m, the dimension of the target vector.- 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.- Parameters:
source- source coordinates.target- set this to the target coordinates.
-
apply
public void apply(int[] source, int[] target)Description copied from interface:TransformApply theTransformto a source vector to obtain a target vector.- Parameters:
source- source coordinates.target- set this to the target coordinates.
-
apply
public void apply(Localizable source, Positionable target)
Description copied from interface:Transform- Parameters:
source- source coordinates.target- set this to the target coordinates.
-
-