Class InverseTransform

java.lang.Object
net.imglib2.transform.InverseTransform
All Implemented Interfaces:
InvertibleTransform, Transform

public final class InverseTransform extends Object implements InvertibleTransform
Final implementation of the inverse of an InvertibleTransform that simply replaces apply by applyInverse and conversely. The original InvertibleTransform is returned on inverse().
Author:
Tobias Pietzsch, Stephan Saalfeld
  • Constructor Details

  • Method Details

    • numSourceDimensions

      public int numSourceDimensions()
      Description copied from interface: Transform
      Returns n, the dimension of the source vector.
      Specified by:
      numSourceDimensions in interface Transform
      Returns:
      the dimension of the source vector.
    • numTargetDimensions

      public int numTargetDimensions()
      Description copied from interface: Transform
      Returns m, the dimension of the target vector.
      Specified by:
      numTargetDimensions in interface Transform
      Returns:
      the dimension of the target vector.
    • 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.
      Specified by:
      apply in interface Transform
      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.
      Specified by:
      apply in interface Transform
      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.
      Specified by:
      apply in interface Transform
      Parameters:
      source - source coordinates.
      target - set this to the target coordinates.
    • applyInverse

      public void applyInverse(long[] source, long[] target)
      Description copied from interface: InvertibleTransform
      Apply the inverse transform to a target vector to obtain a source vector.
      Specified by:
      applyInverse in interface InvertibleTransform
      Parameters:
      source - set this to the source coordinates.
      target - target coordinates.
    • applyInverse

      public void applyInverse(int[] source, int[] target)
      Description copied from interface: InvertibleTransform
      Apply the inverse transform to a target vector to obtain a source vector.
      Specified by:
      applyInverse in interface InvertibleTransform
      Parameters:
      source - set this to the source coordinates.
      target - target coordinates.
    • applyInverse

      public void applyInverse(Positionable source, Localizable target)
      Description copied from interface: InvertibleTransform
      Apply the inverse transform to a target Localizable to obtain a source Positionable.
      Specified by:
      applyInverse in interface InvertibleTransform
      Parameters:
      source - set this to the source coordinates.
      target - target coordinates.
    • inverse

      public InvertibleTransform inverse()
      Description copied from interface: InvertibleTransform
      Get the inverse transform.
      Specified by:
      inverse in interface InvertibleTransform
      Returns:
      the inverse transform