public abstract class AbstractAffineTransform extends Object implements AffineGet, AffineSet
AffineGet.copy()
for each
consumer.Modifier and Type | Field and Description |
---|---|
protected Matrix |
a |
protected RealPoint[] |
ds |
protected int |
n |
protected double[] |
t |
protected double[] |
tmp |
Modifier | Constructor and Description |
---|---|
|
AbstractAffineTransform(int n) |
|
AbstractAffineTransform(Matrix matrix) |
protected |
AbstractAffineTransform(Matrix a,
double[] t) |
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)
|
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.
|
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.
|
protected void |
updateDs() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyInverse, applyInverse, applyInverse
isIdentity
protected final int n
protected final Matrix a
protected final double[] t
protected final double[] tmp
protected final RealPoint[] ds
protected AbstractAffineTransform(Matrix a, double[] t)
public AbstractAffineTransform(Matrix matrix)
public AbstractAffineTransform(int n)
protected void updateDs()
public int numDimensions()
EuclideanSpace
numDimensions
in interface EuclideanSpace
public int numSourceDimensions()
RealTransform
numSourceDimensions
in interface RealTransform
public int numTargetDimensions()
RealTransform
numTargetDimensions
in interface RealTransform
public void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
source
- 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)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
source
- 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)
RealTransform
apply
in interface RealTransform
source
- source coordinates, numDimensions()
must be >=
RealTransform.numSourceDimensions()
target
- set this to the target coordinates,
numDimensions()
must
be >=
RealTransform.numTargetDimensions()
public double get(int row, int column)
AffineGet
public double[] getRowPackedCopy()
AffineGet
getRowPackedCopy
in interface AffineGet
public RealLocalizable d(int d)
AffineGet
Copyright © 2015–2022 ImgLib2. All rights reserved.