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, waitapplyInverse, applyInverse, applyInverseisIdentityprotected 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()
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 double get(int row,
int column)
AffineGetpublic double[] getRowPackedCopy()
AffineGetgetRowPackedCopy in interface AffineGetpublic RealLocalizable d(int d)
AffineGetCopyright © 2015–2022 ImgLib2. All rights reserved.