public class Scale3D extends AbstractScale implements Concatenable<ScaleGet>, PreConcatenable<ScaleGet>
Modifier and Type | Field and Description |
---|---|
protected Scale3D |
inverse |
ds, s
Modifier | Constructor and Description |
---|---|
|
Scale3D(double... s) |
protected |
Scale3D(double[] s,
Scale3D inverse,
RealPoint[] ds) |
|
Scale3D(double sx,
double sy,
double sz) |
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)
|
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 . |
Scale3D |
concatenate(ScaleGet a)
Concatenate this object with a.
|
Scale3D |
copy()
Create a deep copy of this
RealTransform . |
double |
get(int row,
int column)
Get a field of the n×(n+1) affine transformation
matrix.
|
Class<ScaleGet> |
getConcatenableClass() |
Class<ScaleGet> |
getPreConcatenableClass() |
double[] |
getRowPackedCopy()
Get a copy of the n×(n+1) affine transformation
matrix as a row packed array similar to Jama.
|
Scale3D |
inverse()
Get the inverse transform.
|
boolean |
isIdentity()
Check if the
RealTransform is identity. |
Scale3D |
preConcatenate(ScaleGet a)
Pre-concatenate this object with a.
|
void |
set(double... s)
Set the scale vector.
|
void |
set(double sx,
double sy,
double sz) |
d, getScale, getScaleCopy, getTranslation, getTranslationCopy, numDimensions, numSourceDimensions, numTargetDimensions
protected final Scale3D inverse
public Scale3D(double sx, double sy, double sz)
public Scale3D(double... s)
public void set(double sx, double sy, double sz)
public void set(double... s)
AbstractScale
set
in class AbstractScale
s
- s.length <= the number of dimensions of this
AbstractScale
public void applyInverse(double[] source, double[] target)
InvertibleRealTransform
applyInverse
in interface InvertibleRealTransform
applyInverse
in class AbstractScale
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(float[] source, float[] target)
InvertibleRealTransform
applyInverse
in interface InvertibleRealTransform
applyInverse
in class AbstractScale
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
applyInverse
in class AbstractScale
source
- set this to the source coordinates.target
- target coordinates.public void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
apply
in class AbstractScale
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
apply
in class AbstractScale
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
apply
in class AbstractScale
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
get
in interface AffineGet
get
in class AbstractScale
row
- the row indexcolumn
- the column indexpublic double[] getRowPackedCopy()
AffineGet
getRowPackedCopy
in interface AffineGet
getRowPackedCopy
in class AbstractScale
public Scale3D inverse()
InvertibleRealTransform
inverse
in interface AffineGet
inverse
in interface InvertibleRealTransform
inverse
in interface ScaleAndTranslationGet
inverse
in interface ScaleGet
inverse
in class AbstractScale
public Scale3D 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
copy
in interface ScaleAndTranslationGet
copy
in interface ScaleGet
copy
in class AbstractScale
public Scale3D preConcatenate(ScaleGet a)
PreConcatenable
preConcatenate
in interface PreConcatenable<ScaleGet>
public Class<ScaleGet> getPreConcatenableClass()
getPreConcatenableClass
in interface PreConcatenable<ScaleGet>
public Scale3D concatenate(ScaleGet a)
Concatenable
concatenate
in interface Concatenable<ScaleGet>
public Class<ScaleGet> getConcatenableClass()
getConcatenableClass
in interface Concatenable<ScaleGet>
public boolean isIdentity()
RealTransform
RealTransform
is identity.isIdentity
in interface RealTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.