public class SingleDimensionPermutationTransform extends AbstractPermutationTransform
Modifier and Type | Field and Description |
---|---|
protected int |
d |
protected int |
numSourceDimensions |
protected int |
numTargetDimensions |
inverseLut, lut
Constructor and Description |
---|
SingleDimensionPermutationTransform(int[] lut,
int numSourceDimensions,
int numTargetDimensions,
int d) |
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 . |
SingleDimensionPermutationTransform |
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, getLutCopy
protected final int numSourceDimensions
protected final int numTargetDimensions
protected final int d
public SingleDimensionPermutationTransform(int[] lut, int numSourceDimensions, int numTargetDimensions, int d)
lut
- numSourceDimensions
- dimensionality of sourcenumTargetDimensions
- dimensionality of targetd
- dimension which shall be transformed. Must be smaller than
numSourceDimensions
and numTargetDimensions
public void applyInverse(long[] source, long[] target)
InvertibleTransform
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(int[] source, int[] target)
InvertibleTransform
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(Positionable source, Localizable target)
InvertibleTransform
Localizable
to obtain a
source Positionable
.source
- set this to the source coordinates.target
- target coordinates.public SingleDimensionPermutationTransform inverse()
InvertibleTransform
public int numSourceDimensions()
Transform
public int numTargetDimensions()
Transform
public void apply(long[] source, long[] target)
Transform
Transform
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)
Transform
Transform
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)
Transform
source
- source coordinates.target
- set this to the target coordinates.Copyright © 2015–2022 ImgLib2. All rights reserved.