public class SequentializeTransform extends Object implements InvertibleTransform
(m<n)
by
flattening dimensions >m
. An example of this transformation is the
way, a 2D image is flattened out as a 1D array in memory.Modifier and Type | Field and Description |
---|---|
protected InvertibleTransform |
inverse |
protected int |
maxSourceDimension |
protected int |
maxTargetDimension |
protected int |
numSourceDimensions
dimension of source vector.
|
protected int |
numTargetDimensions
dimension of target vector.
|
protected long[] |
seqDimensions |
Constructor and Description |
---|
SequentializeTransform(long[] sourceDimensions,
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 . |
InvertibleTransform |
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.
|
protected final int numSourceDimensions
protected final int numTargetDimensions
protected final int maxSourceDimension
protected final int maxTargetDimension
protected final long[] seqDimensions
protected final InvertibleTransform inverse
public SequentializeTransform(long[] sourceDimensions, int numTargetDimensions)
public int numSourceDimensions()
Transform
numSourceDimensions
in interface Transform
public int numTargetDimensions()
Transform
numTargetDimensions
in interface Transform
public void apply(long[] source, long[] target)
Transform
Transform
to a source vector to obtain a target vector.public void apply(int[] source, int[] target)
Transform
Transform
to a source vector to obtain a target vector.public void apply(Localizable source, Positionable target)
Transform
public void applyInverse(long[] source, long[] target)
InvertibleTransform
applyInverse
in interface InvertibleTransform
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(int[] source, int[] target)
InvertibleTransform
applyInverse
in interface 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
.applyInverse
in interface InvertibleTransform
source
- set this to the source coordinates.target
- target coordinates.public InvertibleTransform inverse()
InvertibleTransform
inverse
in interface InvertibleTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.