Class ShearTransform

java.lang.Object
net.imglib2.transform.integer.shear.AbstractShearTransform
net.imglib2.transform.integer.shear.ShearTransform
All Implemented Interfaces:
BoundingBoxTransform, InvertibleTransform, Transform

public class ShearTransform extends AbstractShearTransform
Forward implementation of the most simple case of a shear transform: coordinate[ shearDimension ] += coordinate[ referenceDimension ]
Author:
Philipp Hanslovsky
  • Constructor Details

    • ShearTransform

      public ShearTransform(int nDim, int shearDimension, int referenceDimension)
      Parameters:
      nDim - Number of dimensions (source and target dimensions must be the same)
      shearDimension - Dimension to be sheared.
      referenceDimension - Dimension used as reference for shear.
    • ShearTransform

      protected ShearTransform(int nDim, int shearDimension, int referenceDimension, AbstractShearTransform inverse)
      Protected constructor for passing an inverse to avoid construction of unnecessary objects.
      Parameters:
      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 -
  • Method Details

    • apply

      public void apply(long[] source, long[] target)
      Description copied from interface: Transform
      Apply the Transform to a source vector to obtain a target vector.
      Parameters:
      source - source coordinates.
      target - set this to the target coordinates.
    • apply

      public void apply(int[] source, int[] target)
      Description copied from interface: Transform
      Apply the Transform to a source vector to obtain a target vector.
      Parameters:
      source - source coordinates.
      target - set this to the target coordinates.
    • apply

      public void apply(Localizable source, Positionable target)
      Description copied from interface: Transform
      Apply the Transform to a source Localizable to obtain a target Positionable.
      Parameters:
      source - source coordinates.
      target - set this to the target coordinates.
    • copy

      public ShearTransform copy()
      Specified by:
      copy in class AbstractShearTransform
    • getShear

      public long[] getShear()
      Specified by:
      getShear in class AbstractShearTransform
    • transform

      public BoundingBox transform(BoundingBox bb)
      Description copied from interface: BoundingBoxTransform
      Return a transformed bounding box. The transformation can be carried out in-place.
      Returns:
      the transformed bounding box