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()
Transform
numSourceDimensions
in interface Transform
public int numTargetDimensions()
Transform
numTargetDimensions
in interface Transform
public void getTranslation(long[] translation)
Mixed
getTranslation
in interface Mixed
translation
- array of size at least the target dimension to store the
result.public long getTranslation(int d)
Mixed
Mixed.getTranslation(long[])
).getTranslation
in interface Mixed
public void getComponentZero(boolean[] zero)
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 [false, false, true]
getComponentZero
in interface Mixed
zero
- array of size at least the target dimension to store the
result.public boolean getComponentZero(int d)
Mixed
Mixed.getComponentZero(boolean[])
).getComponentZero
in interface Mixed
public 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 Mixed
component
- array of size at least the target dimension to store the
result.public int getComponentMapping(int d)
Mixed
Mixed.getComponentMapping(int[])
).getComponentMapping
in interface Mixed
public void getComponentInversion(boolean[] invert)
Mixed
For 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 Mixed
invert
- array of size at least the target dimension to store the
result.public boolean getComponentInversion(int d)
Mixed
Mixed.getComponentInversion(boolean[])
).getComponentInversion
in interface Mixed
public BoundingBox transform(BoundingBox boundingBox)
BoundingBoxTransform
transform
in interface BoundingBoxTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.