public abstract class AbstractPermutationTransform extends Object implements InvertibleTransform
Modifier and Type | Field and Description |
---|---|
protected int[] |
inverseLut |
protected int[] |
lut |
Constructor and Description |
---|
AbstractPermutationTransform(int[] lut) |
Modifier and Type | Method and 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyInverse, applyInverse, applyInverse, inverse
apply, apply, apply, numSourceDimensions, numTargetDimensions
public AbstractPermutationTransform(int[] lut)
lut
- must be a bijective permutation over its index set, i.e. for a
lut of length n, the sorted content of the array must be
[0,...,n-1] which is the index set of the lut.public int apply(int x)
public long applyChecked(int x)
public int applyInverse(int y)
public long applyInverseChecked(int y)
public int[] getLutCopy()
public int[] getInverseLutCopy()
public static final boolean checkBijectivity(int[] lut)
Copyright © 2015–2022 ImgLib2. All rights reserved.