ij.plugin
Class FolderOpener

java.lang.Object
  extended by ij.plugin.FolderOpener
All Implemented Interfaces:
PlugIn

public class FolderOpener
extends Object
implements PlugIn

Implements the File/Import/Image Sequence command, which opens a folder of images as a stack.


Constructor Summary
FolderOpener()
           
 
Method Summary
static boolean excludedFileType(String name)
           
static ImagePlus open(String path)
          Opens the images in the specified directory as a stack.
 void openAsVirtualStack(boolean b)
           
 ImagePlus openFolder(String path)
          Opens the images in the specified directory as a stack.
 void run(String arg)
          This method is called when the plugin is loaded.
 String[] sortFileList(String[] list)
          Sorts file names containing numerical components.
 void sortFileNames(boolean b)
           
 String[] trimFileList(String[] rawlist)
          Removes names that start with "." or end with ".db", ".txt", ".lut", "roi", ".pty", ".hdr", ".py", etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FolderOpener

public FolderOpener()
Method Detail

open

public static ImagePlus open(String path)
Opens the images in the specified directory as a stack. Displays directory chooser and options dialogs if the argument is null.


openFolder

public ImagePlus openFolder(String path)
Opens the images in the specified directory as a stack. Displays directory chooser and options dialogs if the argument is null.


run

public void run(String arg)
Description copied from interface: PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

trimFileList

public String[] trimFileList(String[] rawlist)
Removes names that start with "." or end with ".db", ".txt", ".lut", "roi", ".pty", ".hdr", ".py", etc.


excludedFileType

public static boolean excludedFileType(String name)

openAsVirtualStack

public void openAsVirtualStack(boolean b)

sortFileNames

public void sortFileNames(boolean b)

sortFileList

public String[] sortFileList(String[] list)
Sorts file names containing numerical components.

See Also:
Author: Norbert Vischer


Copyright © 1997–2014 NIH. All rights reserved.