public abstract class AbstractAffineTransform extends Object implements AffineGet, AffineSet
AffineGet.copy() for each
consumer.| Modifier and Type | Field and Description |
|---|---|
protected Jama.Matrix |
a |
protected net.imglib2.RealPoint[] |
ds |
protected int |
n |
protected double[] |
t |
protected double[] |
tmp |
| Modifier | Constructor and Description |
|---|---|
|
AbstractAffineTransform(int n) |
|
AbstractAffineTransform(Jama.Matrix matrix) |
protected |
AbstractAffineTransform(Jama.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(net.imglib2.RealLocalizable source,
net.imglib2.RealPositionable target)
|
net.imglib2.RealInterval |
boundingInterval(net.imglib2.RealInterval interval,
IntervalSamplingMethod samplingMethdod)
Estimate the
RealInterval that bounds the given RealInterval
after being transformed by a RealTransform. |
net.imglib2.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() |
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, applyInverseapply, applyDimension, applyDimension, applyDimension, isIdentityprotected final int n
protected final Jama.Matrix a
protected final double[] t
protected final double[] tmp
protected final net.imglib2.RealPoint[] ds
protected AbstractAffineTransform(Jama.Matrix a, double[] t)
public AbstractAffineTransform(Jama.Matrix matrix)
public AbstractAffineTransform(int n)
protected void updateDs()
public int numDimensions()
numDimensions in interface net.imglib2.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(net.imglib2.RealLocalizable source, net.imglib2.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 net.imglib2.RealLocalizable d(int d)
AffineGetpublic net.imglib2.RealInterval boundingInterval(net.imglib2.RealInterval interval, IntervalSamplingMethod samplingMethdod)
RealTransformRealInterval that bounds the given RealInterval
after being transformed by a RealTransform.
For arbitrary transformations, it is not necessarily possible to
directly calculate the resulting bounding box trivially, therefore,
a sampling methods for coordinates in the source interval must be
provided. RealTransforms that can calculate the bounding
interval more efficiently than by sampling coordinates are encouraged
to override this method and to ignore the provided sampling method.
boundingInterval in interface RealTransforminterval - the real intervalsamplingMethdod - the method used to sample coordinates of the source intervalCopyright © 2009–2025 ImgLib2. All rights reserved.