public class Translation extends AbstractTranslation implements Concatenable<TranslationGet>, PreConcatenable<TranslationGet>
Modifier and Type | Field and Description |
---|---|
protected Translation |
inverse |
ds, t
Modifier | Constructor and Description |
---|---|
|
Translation(double... t) |
protected |
Translation(double[] t,
Translation inverse) |
|
Translation(int n) |
Modifier and Type | Method and Description |
---|---|
Translation |
concatenate(TranslationGet a)
Concatenate this object with a.
|
Translation |
copy()
Create a deep copy of this
RealTransform . |
Class<TranslationGet> |
getConcatenableClass() |
Class<TranslationGet> |
getPreConcatenableClass() |
Translation |
inverse()
Get the inverse transform.
|
boolean |
isIdentity()
Check if the
RealTransform is identity. |
Translation |
preConcatenate(TranslationGet a)
Pre-concatenate this object with a.
|
void |
set(double... t)
Set the translation vector.
|
void |
set(double t,
int d)
Set one value of the translation vector.
|
apply, apply, apply, applyInverse, applyInverse, applyInverse, d, get, getRowPackedCopy, getScale, getScaleCopy, getTranslation, getTranslationCopy, numDimensions, numSourceDimensions, numTargetDimensions
protected final Translation inverse
protected Translation(double[] t, Translation inverse)
public Translation(int n)
public Translation(double... t)
public void set(double... t)
set
in class AbstractTranslation
t
- t.length <= the number of dimensions of this
Translation
public void set(double t, int d)
set
in class AbstractTranslation
t
- t.length <= the number of dimensions of this
Translation
d
- the dimensionpublic Translation copy()
RealTransform
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
copy
in interface AffineGet
copy
in interface InvertibleRealTransform
copy
in interface RealTransform
copy
in interface ScaleAndTranslationGet
copy
in interface TranslationGet
copy
in class AbstractTranslation
public Translation inverse()
InvertibleRealTransform
inverse
in interface AffineGet
inverse
in interface InvertibleRealTransform
inverse
in interface ScaleAndTranslationGet
inverse
in interface TranslationGet
inverse
in class AbstractTranslation
public Translation preConcatenate(TranslationGet a)
PreConcatenable
preConcatenate
in interface PreConcatenable<TranslationGet>
public Class<TranslationGet> getPreConcatenableClass()
getPreConcatenableClass
in interface PreConcatenable<TranslationGet>
public Translation concatenate(TranslationGet a)
Concatenable
concatenate
in interface Concatenable<TranslationGet>
public Class<TranslationGet> getConcatenableClass()
getConcatenableClass
in interface Concatenable<TranslationGet>
public boolean isIdentity()
RealTransform
RealTransform
is identity.isIdentity
in interface RealTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.