Package loci.plugins

Class Slicer

java.lang.Object
loci.plugins.Slicer
All Implemented Interfaces:
ij.plugin.filter.PlugInFilter

public class Slicer extends Object implements ij.plugin.filter.PlugInFilter
A plugin for splitting an image stack into separate channels, focal planes and/or time points.
Author:
Melissa Linkert melissa at glencoesoftware.com
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    Plugin options.
    boolean
    Flag indicating whether last operation was canceled.
    private ij.ImagePlus
    Current image stack.

    Fields inherited from interface ij.plugin.filter.PlugInFilter

    CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private boolean
    Gets the value of the given macro key as a boolean.
    private ij.ImageStack
    makeStack(ij.ImageStack stack)
    Returns a new ImageStack using the given ImageStack as a template.
    static ij.ImagePlus
    reorder(ij.ImagePlus imp, String origOrder, String newOrder)
    Reorder the given ImagePlus's stack.
    ij.ImagePlus[]
    reslice(ij.ImagePlus imp, boolean sliceC, boolean sliceZ, boolean sliceT, String stackOrder)
     
    void
    run(ij.process.ImageProcessor ip)
     
    int
    setup(String arg, ij.ImagePlus imp)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • canceled

      public boolean canceled
      Flag indicating whether last operation was canceled.
    • arg

      private String arg
      Plugin options.
    • imp

      private ij.ImagePlus imp
      Current image stack.
  • Constructor Details

    • Slicer

      public Slicer()
  • Method Details

    • reslice

      public ij.ImagePlus[] reslice(ij.ImagePlus imp, boolean sliceC, boolean sliceZ, boolean sliceT, String stackOrder)
    • reorder

      public static ij.ImagePlus reorder(ij.ImagePlus imp, String origOrder, String newOrder)
      Reorder the given ImagePlus's stack.
    • setup

      public int setup(String arg, ij.ImagePlus imp)
      Specified by:
      setup in interface ij.plugin.filter.PlugInFilter
    • run

      public void run(ij.process.ImageProcessor ip)
      Specified by:
      run in interface ij.plugin.filter.PlugInFilter
    • getBooleanValue

      private boolean getBooleanValue(String key)
      Gets the value of the given macro key as a boolean.
    • makeStack

      private ij.ImageStack makeStack(ij.ImageStack stack)
      Returns a new ImageStack using the given ImageStack as a template.