public class ShearTransform extends AbstractShearTransform
inverse, nDim, referenceDimension, shearDimension
Modifier | Constructor and Description |
---|---|
|
ShearTransform(int nDim,
int shearDimension,
int referenceDimension) |
protected |
ShearTransform(int nDim,
int shearDimension,
int referenceDimension,
AbstractShearTransform inverse)
Protected constructor for passing an inverse to avoid construction of unnecessary objects.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(int[] source,
int[] target)
Apply the
Transform to a source vector to obtain a target vector. |
void |
apply(Localizable source,
Positionable target)
|
void |
apply(long[] source,
long[] target)
Apply the
Transform to a source vector to obtain a target vector. |
ShearTransform |
copy() |
long[] |
getShear() |
BoundingBox |
transform(BoundingBox bb)
Return a transformed bounding box.
|
applyInverse, applyInverse, applyInverse, getReferenceDimension, getShearDimension, inverse, numDimensions, numSourceDimensions, numTargetDimensions
public ShearTransform(int nDim, int shearDimension, int referenceDimension)
nDim
- Number of dimensions (source and target dimensions must be the same)shearDimension
- Dimension to be sheared.referenceDimension
- Dimension used as reference for shear.protected ShearTransform(int nDim, int shearDimension, int referenceDimension, AbstractShearTransform inverse)
nDim
- Number of dimensions (source and target dimensions must be the same)shearDimension
- Dimension to be sheared.referenceDimension
- Dimension used as reference for shear.inverse
- public void apply(long[] source, long[] target)
Transform
Transform
to a source vector to obtain a target vector.source
- source coordinates.target
- set this to the target coordinates.public void apply(int[] source, int[] target)
Transform
Transform
to a source vector to obtain a target vector.source
- source coordinates.target
- set this to the target coordinates.public void apply(Localizable source, Positionable target)
Transform
source
- source coordinates.target
- set this to the target coordinates.public ShearTransform copy()
copy
in class AbstractShearTransform
public long[] getShear()
getShear
in class AbstractShearTransform
public BoundingBox transform(BoundingBox bb)
BoundingBoxTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.