public abstract class AbstractMixedTransform extends Object implements Mixed
| Modifier and Type | Field and Description |
|---|---|
protected int |
numTargetDimensions
dimension of target vector.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMixedTransform(int numTargetDimensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
getComponentInversion(boolean[] invert)
Get an array indicating for each target component, whether the source
component it is taken from should be inverted.
|
boolean |
getComponentInversion(int d)
Get the d-th component of inversion vector (see
Mixed.getComponentInversion(boolean[])). |
int |
getComponentMapping(int d)
Get the source dimension which is mapped to the d-th target dimension
(see
Mixed.getComponentMapping(int[])). |
void |
getComponentMapping(int[] component)
Get an array indicating for each target dimensions from which source
dimension it is taken.
|
void |
getComponentZero(boolean[] zero)
Get a boolean array indicating which target dimensions are _not_ taken
from source dimensions.
|
boolean |
getComponentZero(int d)
Get the d-th component of zeroing vector (see
Mixed.getComponentZero(boolean[])). |
long |
getTranslation(int d)
Get the d-th component of translation (see
Mixed.getTranslation(long[])). |
void |
getTranslation(long[] translation)
Get the translation.
|
int |
numSourceDimensions()
Returns n, the dimension of the source vector.
|
int |
numTargetDimensions()
Returns m, the dimension of the target vector.
|
BoundingBox |
transform(BoundingBox boundingBox)
Return a transformed bounding box.
|
protected final int numTargetDimensions
public int numSourceDimensions()
TransformnumSourceDimensions in interface Transformpublic int numTargetDimensions()
TransformnumTargetDimensions in interface Transformpublic void getTranslation(long[] translation)
MixedgetTranslation in interface Mixedtranslation - array of size at least the target dimension to store the
result.public long getTranslation(int d)
MixedMixed.getTranslation(long[])).getTranslation in interface Mixedpublic void getComponentZero(boolean[] zero)
MixedFor instance, if the transform maps 2D (x,y) coordinates to the first two components of a 3D (x,y,z) coordinate, the result will be [false, false, true]
getComponentZero in interface Mixedzero - array of size at least the target dimension to store the
result.public boolean getComponentZero(int d)
MixedMixed.getComponentZero(boolean[])).getComponentZero in interface Mixedpublic void getComponentMapping(int[] component)
Mixed
For instance, if the transform maps 2D (x,y) coordinates to the first two
components of a 3D (x,y,z) coordinate, the result will be [0, 1, x].
Here, the value of x is undefined because the third target dimension does
not correspond to any source dimension. See Mixed.getComponentZero(boolean[]).
getComponentMapping in interface Mixedcomponent - array of size at least the target dimension to store the
result.public int getComponentMapping(int d)
MixedMixed.getComponentMapping(int[])).getComponentMapping in interface Mixedpublic void getComponentInversion(boolean[] invert)
MixedFor instance, if rotating a 2D (x,y) coordinates by 180 degrees will map it to (-x,-y). In this case, the result will be [true, true].
getComponentInversion in interface Mixedinvert - array of size at least the target dimension to store the
result.public boolean getComponentInversion(int d)
MixedMixed.getComponentInversion(boolean[])).getComponentInversion in interface Mixedpublic BoundingBox transform(BoundingBox boundingBox)
BoundingBoxTransformtransform in interface BoundingBoxTransformCopyright © 2015–2022 ImgLib2. All rights reserved.