public class AffineTransform extends AbstractAffineTransform implements Concatenable<AffineGet>, PreConcatenable<AffineGet>
| Modifier and Type | Field and Description |
|---|---|
protected AffineTransform |
inverse |
| Modifier | Constructor and Description |
|---|---|
protected |
AffineTransform(AffineTransform inverse) |
|
AffineTransform(double... matrix) |
|
AffineTransform(int n) |
|
AffineTransform(Matrix matrix) |
protected |
AffineTransform(Matrix a,
double[] t) |
| Modifier and Type | Method and Description |
|---|---|
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. |
AffineTransform |
concatenate(AffineGet affine)
Concatenate this object with a.
|
AffineTransform |
copy()
Create a deep copy of this
RealTransform. |
Class<AffineGet> |
getConcatenableClass() |
Class<AffineGet> |
getPreConcatenableClass() |
AffineTransform |
inverse()
Get the inverse transform.
|
protected void |
invert() |
protected void |
invertT() |
boolean |
isIdentity()
Check if the
RealTransform is identity. |
AffineTransform |
preConcatenate(AffineGet affine)
Pre-concatenate this object with a.
|
void |
set(AffineGet affine) |
void |
set(double... values)
Set the n×(n+1) affine transformation matrix with
row packed double values.
|
void |
set(double[][] affine)
Set the n×(n+1) affine transformation matrix with
double values from a [row][column] addressed array.
|
void |
set(double value,
int row,
int column)
Set a field of the n×(n+1) affine transformation
matrix.
|
apply, apply, apply, d, get, getRowPackedCopy, numDimensions, numSourceDimensions, numTargetDimensions, updateDsprotected final AffineTransform inverse
public AffineTransform(int n)
protected AffineTransform(Matrix a, double[] t)
public AffineTransform(Matrix matrix)
public AffineTransform(double... matrix)
protected AffineTransform(AffineTransform inverse)
protected void invertT()
protected void invert()
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 AffineTransform inverse()
InvertibleRealTransforminverse in interface AffineGetinverse in interface InvertibleRealTransformpublic void set(AffineGet affine)
public void set(double[][] affine)
AffineSetpublic AffineTransform concatenate(AffineGet affine)
Concatenableconcatenate in interface Concatenable<AffineGet>public Class<AffineGet> getConcatenableClass()
getConcatenableClass in interface Concatenable<AffineGet>public AffineTransform preConcatenate(AffineGet affine)
PreConcatenablepreConcatenate in interface PreConcatenable<AffineGet>public Class<AffineGet> getPreConcatenableClass()
getPreConcatenableClass in interface PreConcatenable<AffineGet>public void set(double value,
int row,
int column)
AffineSetpublic void set(double... values)
AffineSetpublic AffineTransform 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 RealTransformpublic boolean isIdentity()
RealTransformRealTransform is identity.isIdentity in interface RealTransformCopyright © 2015–2022 ImgLib2. All rights reserved.