Class BinaryProcessor

  extended by ij.process.ImageProcessor
      extended by ij.process.ByteProcessor
          extended by ij.process.BinaryProcessor

public class BinaryProcessor
extends ByteProcessor

This class processes binary images.

Field Summary
Fields inherited from class ij.process.ByteProcessor
pixels, snapshotPixels
Fields inherited from class ij.process.ImageProcessor
antialiasedText, baseCM, BLACK, BLACK_AND_WHITE_LUT, bLUT1, bLUT2, boldFont, CENTER_JUSTIFY, clipXMax, clipXMin, clipYMax, clipYMin, cm, cm2, cTable, cx, cy, defaultColorModel, drawingColor, font, fontMetrics, gLUT1, gLUT2, height, histogramMax, histogramMin, histogramSize, image, img, interpolate, inversionTested, invertedLut, justification, LEFT_JUSTIFY, lineWidth, lutAnimation, lutUpdateMode, maxThreshold, minThreshold, newPixels, NO_LUT_UPDATE, NO_THRESHOLD, OVER_UNDER_LUT, raster, RED_LUT, RIGHT_JUSTIFY, rLUT1, rLUT2, roiHeight, roiWidth, roiX, roiY, sampleModel, snapshotHeight, snapshotWidth, source, width, xMax, xMin, yMax, yMin
Constructor Summary
BinaryProcessor(ByteProcessor ip)
          Creates a BinaryProcessor from a ByteProcessor.
Method Summary
 void outline()
 void skeletonize()
          Uses a lookup table to repeatably removes pixels from the edges of objects in a binary image, reducing them to single pixel wide skeletons.
Methods inherited from class ij.process.ByteProcessor
applyLut, applyTable, convolve, convolve3x3, copyBits, createImage, createProcessor, crop, dilate, dilate, drawPixel, duplicate, erode, erode, fill, filter, flipVertical, get, getf, getHistogram, getHistogram, getInterpolatedPixel, getMax, getMin, getPixel, getPixels, getPixelsCopy, getPixelValue, medianFilter, noise, putPixel, putPixelValue, reset, reset, resetMinAndMax, resize, rotate, scale, set, setBackgroundValue, setColor, setf, setMinAndMax, setPixels, setSnapshotPixels, setValue, snapshot, threshold
Methods inherited from class ij.process.ImageProcessor
abs, add, add, addColor, addColor, addPlotString, and, autoThreshold, clearPlotStrings, convertToByte, convertToFloat, convertToRGB, convertToShort, drawDot, drawDot2, drawLine, drawOval, drawPolygon, drawRect, drawString, drawString, exp, fill, fillOval, fillPolygon, findEdges, flipHorizontal, gamma, getAutoThreshold, getAutoThreshold, getBestIndex, getCalibrationTable, getColorModel, getColumn, getCurrentColorModel, getDefaultColorModel, getFloatArray, getFontMetrics, getHeight, getHistogramMax, getHistogramMin, getHistogramSize, getIndexSampleModel, getIntArray, getInterpolate, getInterpolatedValue, getLine, getLutUpdateMode, getMask, getMaskArray, getMaxThreshold, getMinThreshold, getPixel, getRoi, getRow, getStringWidth, getWidth, hideProgress, insert, invert, invertLut, isColorLut, isInvertedLut, isKillable, isPseudoColorLut, lineTo, log, makeDefaultColorModel, maskSizeError, max, min, moveTo, multiply, or, plotStrings, putColumn, putPixel, putRow, resetBinaryThreshold, resetRoi, resetThreshold, resize, rotateLeft, rotateRight, setAntialiasedText, setCalibrationTable, setClipRect, setColor, setColorModel, setFloatArray, setFont, setHistogramRange, setHistogramSize, setIntArray, setInterpolate, setJustification, setLineWidth, setLutAnimation, setMask, setProgressBar, setRoi, setRoi, setRoi, setRoi, setSnapshotCopyMode, setThreshold, sharpen, showProgress, smooth, sqr, sqrt, toString, xor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public BinaryProcessor(ByteProcessor ip)
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.

Method Detail


public void skeletonize()
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".

skeletonize in class ByteProcessor


public void outline()
outline in class ByteProcessor