Squiz Matrix
4.12.2
|
Public Member Functions | |
BinaryProcessor (ByteProcessor ip) | |
void | skeletonize () |
void | outline () |
Public Member Functions inherited from ByteProcessor | |
ByteProcessor (Image img) | |
ByteProcessor (int width, int height) | |
ByteProcessor (int width, int height, byte[] pixels, ColorModel cm) | |
Image | createImage () |
ImageProcessor | createProcessor (int width, int height) |
ImageProcessor | crop () |
void | snapshot () |
void | reset () |
void | reset (ImageProcessor mask) |
void | fill (ImageProcessor mask) |
int | getPixel (int x, int y) |
double | getInterpolatedPixel (double x, double y) |
double | getInterpolatedValue (double x, double y) |
float | getPixelValue (int x, int y) |
void | setColor (Color color) |
void | setValue (double value) |
void | putPixelValue (int x, int y, double value) |
void | putPixel (int x, int y, int value) |
void | drawPixel (int x, int y) |
Object | getPixels () |
Object | getPixelsCopy () |
void | setPixels (Object pixels) |
double | getMin () |
double | getMax () |
void | setMinAndMax (double min, double max) |
void | resetMinAndMax () |
void | copyBits (ImageProcessor ip, int xloc, int yloc, int mode) |
void | applyTable (int[] lut) |
void | convolve3x3 (int[] kernel) |
void | filter (int type) |
void | erode () |
void | dilate () |
void | outline () |
void | skeletonize () |
void | medianFilter () |
void | noise (double range) |
void | scale (double xScale, double yScale) |
ImageProcessor | resize (int dstWidth, int dstHeight) |
void | rotate (double angle) |
void | flipVertical () |
int[] | getHistogram () |
int[] | getHistogram (ImageProcessor mask) |
void | threshold (int level) |
void | applyLut () |
void | convolve (float[] kernel, int kernelWidth, int kernelHeight) |
Public Member Functions inherited from ImageProcessor | |
int | getWidth () |
int | getHeight () |
ColorModel | getColorModel () |
void | setColorModel (ColorModel cm) |
void | invertLut () |
int | getBestIndex (Color c) |
boolean | isInvertedLut () |
boolean | isColorLut () |
boolean | isPseudoColorLut () |
void | setColor (int value) |
void | resetMinAndMax () |
void | setThreshold (double minThreshold, double maxThreshold, int lutUpdate) |
void | resetThreshold () |
double | getMinThreshold () |
double | getMaxThreshold () |
void | setRoi (Rectangle roi) |
void | setRoi (int x, int y, int rwidth, int rheight) |
void | setRoi (ij.gui.Roi roi) |
void | setRoi (Polygon roi) |
void | resetRoi () |
Rectangle | getRoi () |
void | setMask (ImageProcessor mask) |
ImageProcessor | getMask () |
byte[] | getMaskArray () |
void | setProgressBar (ProgressBar pb) |
void | setInterpolate (boolean interpolate) |
boolean | getInterpolate () |
boolean | isKillable () |
double[] | getLine (double x1, double y1, double x2, double y2) |
void | getRow (int x, int y, int[] data, int length) |
void | getColumn (int x, int y, int[] data, int length) |
void | putRow (int x, int y, int[] data, int length) |
void | putColumn (int x, int y, int[] data, int length) |
void | moveTo (int x, int y) |
void | setLineWidth (int width) |
void | lineTo (int x2, int y2) |
void | drawLine (int x1, int y1, int x2, int y2) |
void | drawRect (int x, int y, int width, int height) |
void | drawPolygon (Polygon p) |
void | fillPolygon (Polygon p) |
void | drawDot2 (int x, int y) |
void | drawDot (int xcenter, int ycenter) |
void | drawString (String s) |
void | drawString (String s, int x, int y) |
void | setJustification (int justification) |
void | setFont (Font font) |
void | setAntialiasedText (boolean antialiasedText) |
int | getStringWidth (String s) |
FontMetrics | getFontMetrics () |
void | smooth () |
void | sharpen () |
void | findEdges () |
void | flipHorizontal () |
ImageProcessor | rotateRight () |
ImageProcessor | rotateLeft () |
void | insert (ImageProcessor ip, int xloc, int yloc) |
String | toString () |
void | fill () |
void | setCalibrationTable (float[] cTable) |
void | setHistogramSize (int size) |
int | getHistogramSize () |
void | setHistogramRange (double histMin, double histMax) |
double | getHistogramMin () |
double | getHistogramMax () |
int[] | getPixel (int x, int y, int[] iArray) |
void | putPixel (int x, int y, int[] iArray) |
double | getInterpolatedValue (double x, double y) |
void | invert () |
void | add (int value) |
void | add (double value) |
void | multiply (double value) |
void | and (int value) |
void | or (int value) |
void | xor (int value) |
void | gamma (double value) |
void | log () |
void | sqr () |
void | sqrt () |
void | min (double value) |
void | max (double value) |
ImageProcessor | duplicate () |
void | setLutAnimation (boolean lutAnimation) |
ImageProcessor | convertToByte (boolean doScaling) |
ImageProcessor | convertToShort (boolean doScaling) |
ImageProcessor | convertToFloat () |
ImageProcessor | convertToRGB () |
void | autoThreshold () |
int | getAutoThreshold () |
int | getAutoThreshold (int[] histogram) |
void | setClipRect (Rectangle clipRect) |
Additional Inherited Members | |
Static Public Attributes inherited from ImageProcessor | |
static final int | BLACK = 0xFF000000 |
static final double | NO_THRESHOLD = -808080.0 |
static final int | LEFT_JUSTIFY = 0 |
static final int | CENTER_JUSTIFY = 1 |
static final int | RIGHT_JUSTIFY = 2 |
static final int | RED_LUT =0 |
Protected Member Functions inherited from ImageProcessor | |
void | showProgress (double percentDone) |
void | hideProgress () |
void | makeDefaultColorModel () |
String | maskSizeError (ImageProcessor mask) |
Protected Attributes inherited from ByteProcessor | |
byte[] | pixels |
byte[] | snapshotPixels |
This class processes binary images.
Definition at line 6 of file BinaryProcessor.java.
|
inline |
Creates a BinaryProcessor from a ByteProcessor. The ByteProcessor must contain a binary image (pixels values are either 0 or 255). Backgound is assumed to be white.
Definition at line 13 of file BinaryProcessor.java.
|
inline |
Uses a lookup table to repeatably removes pixels from the edges of objects in a binary image, reducing them to single pixel wide skeletons. Based on an a thinning algorithm by by Zhang and Suen (CACM, March 1984, 236-239). There is an entry in the table for each of the 256 possible 3x3 neighborhood configurations. An entry of '1' means delete pixel on first pass, '2' means delete pixel on second pass, and '3' means delete on either pass. A graphical representation of the 256 neighborhoods indexed by the table is available at "http://rsb.info.nih.gov/ij/images/skeletonize-table.gif".
Definition at line 78 of file BinaryProcessor.java.