public class Scale2D extends AbstractScale implements Concatenable<ScaleGet>, PreConcatenable<ScaleGet>
| Modifier and Type | Field and Description |
|---|---|
protected Scale2D |
inverse |
ds, s| Modifier | Constructor and Description |
|---|---|
|
Scale2D(double... s) |
protected |
Scale2D(double[] s,
Scale2D inverse,
RealPoint[] ds) |
|
Scale2D(double sx,
double sy) |
| 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. |
Scale2D |
concatenate(ScaleGet a)
Concatenate this object with a.
|
Scale2D |
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.
|
Scale2D |
inverse()
Get the inverse transform.
|
boolean |
isIdentity()
Check if the
RealTransform is identity. |
Scale2D |
preConcatenate(ScaleGet a)
Pre-concatenate this object with a.
|
void |
set(double... s)
Set the scale vector.
|
void |
set(double sx,
double sy) |
d, getScale, getScaleCopy, getTranslation, getTranslationCopy, numDimensions, numSourceDimensions, numTargetDimensionsprotected final Scale2D inverse
public void set(double sx,
double sy)
public void set(double... s)
AbstractScaleset in class AbstractScales - s.length <= the number of dimensions of this
AbstractScalepublic void applyInverse(double[] source,
double[] target)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformapplyInverse in class AbstractScalesource - set this to the source coordinates.target - target coordinates.public void applyInverse(float[] source,
float[] target)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformapplyInverse in class AbstractScalesource - set this to the source coordinates.target - target coordinates.public void applyInverse(RealPositionable source, RealLocalizable target)
InvertibleRealTransformRealLocalizable to obtain
a source RealPositionable.applyInverse in interface InvertibleRealTransformapplyInverse in class AbstractScalesource - set this to the source coordinates.target - target coordinates.public void apply(double[] source,
double[] target)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformapply in class AbstractScalesource - 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 RealTransformapply in class AbstractScalesource - 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 RealTransformapply in class AbstractScalesource - 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)
AffineGetget in interface AffineGetget in class AbstractScalerow - the row indexcolumn - the column indexpublic double[] getRowPackedCopy()
AffineGetgetRowPackedCopy in interface AffineGetgetRowPackedCopy in class AbstractScalepublic Scale2D inverse()
InvertibleRealTransforminverse in interface AffineGetinverse in interface InvertibleRealTransforminverse in interface ScaleAndTranslationGetinverse in interface ScaleGetinverse in class AbstractScalepublic Scale2D copy()
RealTransformRealTransform.
Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
copy in interface AffineGetcopy in interface InvertibleRealTransformcopy in interface RealTransformcopy in interface ScaleAndTranslationGetcopy in interface ScaleGetcopy in class AbstractScalepublic Scale2D preConcatenate(ScaleGet a)
PreConcatenablepreConcatenate in interface PreConcatenable<ScaleGet>public Class<ScaleGet> getPreConcatenableClass()
getPreConcatenableClass in interface PreConcatenable<ScaleGet>public Scale2D concatenate(ScaleGet a)
Concatenableconcatenate in interface Concatenable<ScaleGet>public Class<ScaleGet> getConcatenableClass()
getConcatenableClass in interface Concatenable<ScaleGet>public boolean isIdentity()
RealTransformRealTransform is identity.isIdentity in interface RealTransformCopyright © 2015–2022 ImgLib2. All rights reserved.