ij.plugin
Class SpecifyROI
java.lang.Object
ij.plugin.SpecifyROI
- All Implemented Interfaces:
- ij.gui.DialogListener, PlugIn
public class SpecifyROI
- extends java.lang.Object
- implements PlugIn, ij.gui.DialogListener
This plugin implements the Edit/Selection/Specify command.
Enhancing the original plugin created by Jeffrey Kuhn, this one takes,
in addition to width and height and the option to have an oval ROI from
the original program, x & y coordinates, slice number, and the option to have
the x & y coordinates centered or in default top left corner of ROI.
The original creator is Jeffrey Kuhn, The University of Texas at Austin,
jkuhn@ccwf.cc.utexas.edu
- Author:
- Anthony Padua, Duke University Medical Center, Department of Radiology, padua001@mc.duke.edu
Field Summary |
(package private) boolean |
bAbort
|
(package private) static boolean |
centered
|
(package private) java.util.Vector |
checkboxes
|
(package private) java.util.Vector |
fields
|
(package private) int |
iHeight
|
(package private) ImagePlus |
imp
|
(package private) int |
iSlice
|
(package private) int |
iWidth
|
(package private) int |
iX
|
(package private) int |
iXROI
|
(package private) int |
iY
|
(package private) int |
iYROI
|
(package private) static boolean |
oval
|
(package private) int |
stackSize
|
Method Summary |
boolean |
dialogItemChanged(ij.gui.GenericDialog gd,
java.awt.AWTEvent e)
|
(package private) void |
drawRoi()
|
void |
run(java.lang.String arg)
This method is called when the plugin is loaded. |
(package private) void |
showDialog()
Creates a dialog box, allowing the user to enter the requested
width, height, x & y coordinates, slice number for a Region Of Interest,
option for oval, and option for whether x & y coordinates to be centered. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iX
int iX
iY
int iY
iXROI
int iXROI
iYROI
int iYROI
iSlice
int iSlice
iWidth
int iWidth
iHeight
int iHeight
bAbort
boolean bAbort
imp
ImagePlus imp
oval
static boolean oval
centered
static boolean centered
fields
java.util.Vector fields
checkboxes
java.util.Vector checkboxes
stackSize
int stackSize
SpecifyROI
public SpecifyROI()
run
public void run(java.lang.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
showDialog
void showDialog()
- Creates a dialog box, allowing the user to enter the requested
width, height, x & y coordinates, slice number for a Region Of Interest,
option for oval, and option for whether x & y coordinates to be centered.
drawRoi
void drawRoi()
dialogItemChanged
public boolean dialogItemChanged(ij.gui.GenericDialog gd,
java.awt.AWTEvent e)
- Specified by:
dialogItemChanged
in interface ij.gui.DialogListener