vnt

Class Debug_tool

Implemented Interfaces:
PlugInFilter

public class Debug_tool
extends java.lang.Object
implements PlugInFilter

A simple tool that displays the selected rectangular ROI's pixel values. Mostly useful for finding weird color anomalies that the eye can't see.

Originally designed for debugging the DistanceMap_Skeleton plug-in utility.

Version:
1.0
Author:
Michael Miller - Truman State University
Since:
1.0

Method Summary

void
run(ImageProcessor ip)
Displays in an ImageJ popup window the highlighted ROI pixel data of a grayscale image.
int
setup(String arg, ImagePlus ip)
Specifies the preconditions for the plug-in.

Method Details

run

public void run(ImageProcessor ip)
Displays in an ImageJ popup window the highlighted ROI pixel data of a grayscale image. Pre: The image was cleared to run by the setup() method. Assumes the ROI is rectangular.
Post: The image is processed by the segmentation routines. A new segmented binary image is drawn.
Parameters:

setup

public int setup(String arg,
                 ImagePlus ip)
Specifies the preconditions for the plug-in. If this method succeeds then run() is called. Pre: ImageJ is running and an 8-bit grayscale image is open. The plug-in was just activated.
Post: Either an argument was processed, or the plug-in is cleared to run on the image.
Parameters:
arg - Required by the interface. The argument list passed to the plug-in.
Returns:
If DONE is returned, ImageJ quits without run()'ing the plug-in. Otherwise, the plug-in signals to ImageJ that this plugin only handles 8-bit (256 grayscale) and will not change the original image.