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, updateDs
protected 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)
InvertibleRealTransform
applyInverse
in interface InvertibleRealTransform
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(float[] source, float[] target)
InvertibleRealTransform
applyInverse
in interface InvertibleRealTransform
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(RealPositionable source, RealLocalizable target)
InvertibleRealTransform
RealLocalizable
to obtain
a source RealPositionable
.applyInverse
in interface InvertibleRealTransform
source
- set this to the source coordinates.target
- target coordinates.public AffineTransform inverse()
InvertibleRealTransform
inverse
in interface AffineGet
inverse
in interface InvertibleRealTransform
public void set(AffineGet affine)
public void set(double[][] affine)
AffineSet
public AffineTransform concatenate(AffineGet affine)
Concatenable
concatenate
in interface Concatenable<AffineGet>
public Class<AffineGet> getConcatenableClass()
getConcatenableClass
in interface Concatenable<AffineGet>
public AffineTransform preConcatenate(AffineGet affine)
PreConcatenable
preConcatenate
in interface PreConcatenable<AffineGet>
public Class<AffineGet> getPreConcatenableClass()
getPreConcatenableClass
in interface PreConcatenable<AffineGet>
public void set(double value, int row, int column)
AffineSet
public void set(double... values)
AffineSet
public AffineTransform 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
public boolean isIdentity()
RealTransform
RealTransform
is identity.isIdentity
in interface RealTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.