public abstract class AbstractTranslation extends Object implements TranslationGet
| Modifier and Type | Field and Description |
|---|---|
protected RealPoint[] |
ds |
protected double[] |
t |
| Modifier | Constructor and Description |
|---|---|
|
AbstractTranslation(double... t) |
protected |
AbstractTranslation(double[] t,
RealPoint[] ds) |
|
AbstractTranslation(int n) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(double[] source,
double[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(float[] source,
float[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(RealLocalizable source,
RealPositionable target)
|
void |
applyInverse(double[] source,
double[] target)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(float[] source,
float[] target)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(RealPositionable source,
RealLocalizable target)
Apply the inverse transform to a target
RealLocalizable to obtain
a source RealPositionable. |
abstract AbstractTranslation |
copy()
Create a deep copy of this
RealTransform. |
RealLocalizable |
d(int d)
Get the constant partial differential vector for dimension d.
|
double |
get(int row,
int column)
Get a field of the n×(n+1) affine transformation
matrix.
|
double[] |
getRowPackedCopy()
Get a copy of the n×(n+1) affine transformation
matrix as a row packed array similar to Jama.
|
double |
getScale(int d)
Get a field of the n-dimensional scale vector.
|
double[] |
getScaleCopy()
Get a copy of the n-dimensional scale vector.
|
double |
getTranslation(int d)
Get a field of the n-dimensionsional translation vector.
|
double[] |
getTranslationCopy()
Get a copy of the n-dimensionsional translation vector.
|
abstract AbstractTranslation |
inverse()
Get the inverse transform.
|
int |
numDimensions()
Gets the space's number of dimensions.
|
int |
numSourceDimensions()
Returns n, the minimal number of dimension of the source vector.
|
int |
numTargetDimensions()
Returns m, the minimal dimension of the target vector.
|
abstract void |
set(double... t)
Set the translation vector.
|
abstract void |
set(double t,
int d)
Set one value of the translation vector.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisIdentityprotected final double[] t
protected final RealPoint[] ds
protected AbstractTranslation(double[] t,
RealPoint[] ds)
public AbstractTranslation(int n)
public AbstractTranslation(double... t)
public abstract void set(double... t)
t - t.length <= the number of dimensions of this
AbstractTranslationpublic abstract void set(double t,
int d)
t - t.length <= the number of dimensions of this
AbstractTranslationd - the dimensionpublic int numDimensions()
EuclideanSpacenumDimensions in interface EuclideanSpacepublic int numSourceDimensions()
RealTransformnumSourceDimensions in interface RealTransformpublic int numTargetDimensions()
RealTransformnumTargetDimensions in interface RealTransformpublic void apply(double[] source,
double[] target)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformsource - source coordinates, length must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()public void apply(float[] source,
float[] target)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformsource - source coordinates, length must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()public void apply(RealLocalizable source, RealPositionable target)
RealTransformapply in interface RealTransformsource - source coordinates, numDimensions() must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates,
numDimensions() must
be >= RealTransform.numTargetDimensions()public void applyInverse(double[] source,
double[] target)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformsource - set this to the source coordinates.target - target coordinates.public void applyInverse(float[] source,
float[] target)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformsource - set this to the source coordinates.target - target coordinates.public void applyInverse(RealPositionable source, RealLocalizable target)
InvertibleRealTransformRealLocalizable to obtain
a source RealPositionable.applyInverse in interface InvertibleRealTransformsource - set this to the source coordinates.target - target coordinates.public abstract AbstractTranslation copy()
RealTransformRealTransform.
Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
copy in interface AffineGetcopy in interface InvertibleRealTransformcopy in interface RealTransformcopy in interface ScaleAndTranslationGetcopy in interface TranslationGetpublic double get(int row,
int column)
AffineGetpublic double[] getRowPackedCopy()
AffineGetgetRowPackedCopy in interface AffineGetpublic RealLocalizable d(int d)
AffineGetpublic double getScale(int d)
ScaleAndTranslationGetgetScale in interface ScaleAndTranslationGetd - the dimensionpublic double[] getScaleCopy()
ScaleAndTranslationGetgetScaleCopy in interface ScaleAndTranslationGetpublic double getTranslation(int d)
ScaleAndTranslationGetgetTranslation in interface ScaleAndTranslationGetd - the dimensionpublic double[] getTranslationCopy()
ScaleAndTranslationGetgetTranslationCopy in interface ScaleAndTranslationGetpublic abstract AbstractTranslation inverse()
InvertibleRealTransforminverse in interface AffineGetinverse in interface InvertibleRealTransforminverse in interface ScaleAndTranslationGetinverse in interface TranslationGetCopyright © 2015–2022 ImgLib2. All rights reserved.