vnt

Class Batch_Folder

Implemented Interfaces:
PlugIn

public class Batch_Folder
extends VascularNetworkToolkit
implements PlugIn

Batch processes an entire folder of images. Batch_Folder will do the following:
  1. grayscale
  2. lighting correction
  3. segmentation
  4. skeletonization
  5. endpoint pruning and outline generation
  6. perform graph theoretic analysis on the skeleton

After it is complete, Batch_Folder closes all images. An alternative is Batch_Filde, which will perform this process on only one specific image, but it will leave all the images generated by the process open for user inspection.

Version:
1.0
Author:
Michael Miller - Truman State University
Since:
1.0
See Also:
Batch_File

Method Summary

private void
cleanUpAfterProcess()
This is called after a particular image has been processed by the VNT.
private void
mainProcess()
This is called when a particular image is open and it needs to be processed.
private void
recursiveProcessFolder(String directoryName, boolean goDeeper)
void
run(String arg)
This is called at the beginning of the PlugIn.

Method Details

cleanUpAfterProcess

private void cleanUpAfterProcess()
This is called after a particular image has been processed by the VNT.

Pre: An image has been opened and processed by the VNT.
Post: All open files are closed, and [temp files may be deleted].


mainProcess

private void mainProcess()
This is called when a particular image is open and it needs to be processed.

Pre: An image is open and ready to be processed by the VNT.
Post: A batch process is performed on a currently active image.


recursiveProcessFolder

private void recursiveProcessFolder(String directoryName,
                                    boolean goDeeper)

run

public void run(String arg)
This is called at the beginning of the PlugIn.

Pre: ImageJ is open and the plugin was called.
Post: A batch process is performed on a selected folder.

Parameters:
arg - Required by the interface. The argument, if any (may be blank).