ij.plugin
Class Selection
java.lang.Object
ij.plugin.Selection
- All Implemented Interfaces:
- ij.measure.Measurements, PlugIn
public class Selection
- extends java.lang.Object
- implements PlugIn, ij.measure.Measurements
This plugin implements the commands in the Edit/Section submenu.
Field Summary |
(package private) static java.lang.String |
angle
|
(package private) static java.lang.String |
bandSize
|
(package private) static java.lang.String |
enlarge
|
(package private) ImagePlus |
imp
|
(package private) float[] |
kernel
|
(package private) float[] |
kernel3
|
Fields inherited from interface ij.measure.Measurements |
AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, PERIMETER, RECT, SKEWNESS, SLICE, STD_DEV |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
imp
ImagePlus imp
kernel
float[] kernel
kernel3
float[] kernel3
angle
static java.lang.String angle
enlarge
static java.lang.String enlarge
bandSize
static java.lang.String bandSize
Selection
public Selection()
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
runMacro
void runMacro(java.lang.String arg)
fitSpline
void fitSpline()
getLength
double getLength(ij.gui.PolygonRoi roi)
trimPolygon
ij.gui.PolygonRoi trimPolygon(ij.gui.PolygonRoi roi,
double length)
rodbard
double rodbard(double x)
getCurvature
float[] getCurvature(int[] x,
int[] y,
int n)
drawEllipse
void drawEllipse(ImagePlus imp)
convexHull
void convexHull(ImagePlus imp)
makeConvexHull
ij.gui.Roi makeConvexHull(ImagePlus imp,
ij.gui.PolygonRoi roi)
findFirstPoint
int findFirstPoint(int[] xCoordinates,
int[] yCoordinates,
int n,
ImagePlus imp)
createMask
void createMask(ImagePlus imp)
createMaskFromThreshold
void createMaskFromThreshold(ImagePlus imp)
createSelectionFromMask
void createSelectionFromMask(ImagePlus imp)
invert
void invert(ImagePlus imp)
addToRoiManager
void addToRoiManager(ImagePlus imp)