Class AbstractPermutationTransform
- java.lang.Object
-
- net.imglib2.transform.integer.permutation.AbstractPermutationTransform
-
- All Implemented Interfaces:
InvertibleTransform
,Transform
- Direct Known Subclasses:
PermutationTransform
,SingleDimensionPermutationTransform
public abstract class AbstractPermutationTransform extends java.lang.Object implements InvertibleTransform
Bijective integer transform mapping between integer coordinates in [0,n-1]. Currently, this transform handles only coordinates in the integer range because it is implemented using primitive arrays with integer indices for efficiency reasons. Expect this permutation to be transferred to long coordinates some time in more distant future.- Author:
- Philipp Hanslovsky, Stephan Saalfeld
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
inverseLut
protected int[]
lut
-
Constructor Summary
Constructors Constructor Description AbstractPermutationTransform(int[] lut)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
apply(int x)
long
applyChecked(int x)
int
applyInverse(int y)
long
applyInverseChecked(int y)
static boolean
checkBijectivity(int[] lut)
int[]
getInverseLutCopy()
int[]
getLutCopy()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.transform.InvertibleTransform
applyInverse, applyInverse, applyInverse, inverse
-
Methods inherited from interface net.imglib2.transform.Transform
apply, apply, apply, numSourceDimensions, numTargetDimensions
-
-
-
-
Method Detail
-
apply
public int apply(int x)
-
applyChecked
public long applyChecked(int x)
-
applyInverse
public int applyInverse(int y)
-
applyInverseChecked
public long applyInverseChecked(int y)
-
getLutCopy
public int[] getLutCopy()
-
getInverseLutCopy
public int[] getInverseLutCopy()
-
checkBijectivity
public static final boolean checkBijectivity(int[] lut)
-
-