public class PermutationTransform extends AbstractPermutationTransform
| 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)
Apply the
Transform to a source vector to obtain a target vector. |
void |
apply(Localizable source,
Positionable target)
|
void |
apply(long[] source,
long[] target)
Apply the
Transform to a source vector to obtain a target vector. |
void |
applyInverse(int[] source,
int[] target)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(long[] source,
long[] target)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(Positionable source,
Localizable target)
Apply the inverse transform to a target
Localizable to obtain a
source Positionable. |
static boolean |
checkInterval(Interval interval,
int[] lut)
Test whether a given lut can be applied to an interval.
|
PermutationTransform |
inverse()
Get the inverse transform.
|
int |
numSourceDimensions()
Returns n, the dimension of the source vector.
|
int |
numTargetDimensions()
Returns m, the dimension of the target vector.
|
apply, applyChecked, applyInverse, applyInverseChecked, checkBijectivity, getInverseLutCopy, getLutCopyprotected 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 length n, the sorted content the array must be
[0,...,n-1] which is the index set of the lut.numSourceDimensions - numTargetDimensions - public int numSourceDimensions()
Transformpublic int numTargetDimensions()
Transformpublic void apply(long[] source,
long[] target)
TransformTransform to a source vector to obtain a target vector.source - source coordinates.target - set this to the target coordinates.public void apply(int[] source,
int[] target)
TransformTransform to a source vector to obtain a target vector.source - source coordinates.target - set this to the target coordinates.public void apply(Localizable source, Positionable target)
Transformsource - source coordinates.target - set this to the target coordinates.public void applyInverse(long[] source,
long[] target)
InvertibleTransformsource - set this to the source coordinates.target - target coordinates.public void applyInverse(int[] source,
int[] target)
InvertibleTransformsource - set this to the source coordinates.target - target coordinates.public void applyInverse(Positionable source, Localizable target)
InvertibleTransformLocalizable to obtain a
source Positionable.source - set this to the source coordinates.target - target coordinates.public PermutationTransform inverse()
InvertibleTransformpublic static boolean checkInterval(Interval interval, int[] lut)
interval - lut - Copyright © 2015–2022 ImgLib2. All rights reserved.