Package sc.fiji.snt.analysis
Class PathStraightener
java.lang.Object
sc.fiji.snt.analysis.PathStraightener
Command to "straighten" an image using Path coordinates.
- Author:
- Tiago Ferreira
-
Constructor Summary
ConstructorsConstructorDescriptionPathStraightener(Path path, ij.ImagePlus imp) Instantiates a new PathStraightenerPathStraightener(Path path, SNT snt) Instantiates a new PathStraightener -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain method for testing and demonstration purposes.voidsetWidth(int width) Sets the width of the straightened path image.ij.ImagePlusij.process.ImageProcessorstraighten(int channel)
-
Constructor Details
-
PathStraightener
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
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
- 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
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)
-