Class PathStraightener

java.lang.Object
sc.fiji.snt.analysis.PathStraightener

public class PathStraightener extends Object
Command to "straighten" an image using Path coordinates.
Author:
Tiago Ferreira
  • Constructor Details

    • PathStraightener

      public PathStraightener(Path path, ij.ImagePlus imp) throws IllegalArgumentException
      Instantiates a new PathStraightener
      Parameters:
      path - the Path to be 'straightened'
      imp - the image from which pixel intensities will be retrieved. Note that no effort is made to ensure that the image is suitable
      Throws:
      IllegalArgumentException
    • PathStraightener

      public PathStraightener(Path path, SNT snt) throws IllegalArgumentException
      Instantiates a new PathStraightener
      Parameters:
      path - the Path to be 'straightened'
      snt - the SNT instance providing the image to from which pixel intensities will be retrieved.
      Throws:
      IllegalArgumentException
  • Method Details

    • straighten

      public ij.ImagePlus straighten()
      Returns:
      the straightened path as an ImagePlus object
    • straighten

      public ij.process.ImageProcessor straighten(int channel) throws IllegalArgumentException
      Parameters:
      channel - the channel to bes straightened
      Returns:
      the straightened path for the specified channel as an ImageProcessor object
      Throws:
      IllegalArgumentException
    • setWidth

      public void setWidth(int width)
      Sets the width of the straightened path image.
      Parameters:
      width - the width in pixels
    • main

      public static void main(String[] args)
      Main method for testing and demonstration purposes.

      Creates a PathStraightener instance using demo data and displays the straightened path result. This method is primarily used for development and debugging.

      Parameters:
      args - command line arguments (not used)