public class PermutationTransform extends AbstractPerumtationTransform
Modifier and Type | Field and Description |
---|---|
protected int |
numSourceDimensions |
protected int |
numTargetDimensions |
inverseLut, lut
Constructor and Description |
---|
PermutationTransform(int[] lut,
int numSourceDimensions,
int numTargetDimensions) |
Modifier and Type | Method and Description |
---|---|
void |
apply(int[] source,
int[] target) |
void |
apply(Localizable source,
Positionable target) |
void |
apply(long[] source,
long[] target) |
void |
applyInverse(int[] source,
int[] target) |
void |
applyInverse(long[] source,
long[] target) |
void |
applyInverse(Positionable source,
Localizable target) |
PermutationTransform |
copyToDimension(int numSourceDimensions,
int numTargetDimensions) |
InvertibleTransform |
inverse() |
int |
numSourceDimensions() |
int |
numTargetDimensions() |
apply, applyChecked, applyInverse, applyInverseChecked, getInverseLutCopy, getLutCopy
protected final int numSourceDimensions
protected final int numTargetDimensions
public PermutationTransform(int[] lut, int numSourceDimensions, int numTargetDimensions)
lut
- must be a bijective permutation over its index set, i.e. for a
lut of legnth n, the sorted content the array must be
[0,...,n-1] which is the index set of the lut.numSourceDimensions
- numTargetDimensions
- public int numSourceDimensions()
public int numTargetDimensions()
public void apply(long[] source, long[] target)
public void apply(int[] source, int[] target)
public void apply(Localizable source, Positionable target)
public void applyInverse(long[] source, long[] target)
public void applyInverse(int[] source, int[] target)
public void applyInverse(Positionable source, Localizable target)
public InvertibleTransform inverse()
public PermutationTransform copyToDimension(int numSourceDimensions, int numTargetDimensions)
Copyright © 2015–2021 Fiji. All rights reserved.