Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/process/BinaryProcessor.html
Дата изменения: Thu Dec 2 23:03:10 2010
Дата индексирования: Mon Oct 1 22:55:07 2012
Кодировка:

Поисковые слова: эта киля
BinaryProcessor (ImageJ API)

ij.process
Class BinaryProcessor

java.lang.Object
  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, BICUBIC, BILINEAR, BLACK, BLACK_AND_WHITE_LUT, BLUR_MORE, bLUT1, bLUT2, boldFont, CENTER_JUSTIFY, clipXMax, clipXMin, clipYMax, clipYMin, cm, cm2, CONVOLVE, cTable, cx, cy, defaultColorModel, drawingColor, FIND_EDGES, fmImage, font, fontMetrics, gLUT1, gLUT2, height, histogramMax, histogramMin, histogramSize, image, img, interpolate, interpolationMethod, inversionTested, invertedLut, ISODATA, ISODATA2, justification, LEFT_JUSTIFY, lineWidth, lutAnimation, lutUpdateMode, MAX, maxThreshold, MEDIAN_FILTER, MIN, minMaxSet, minThreshold, NEAREST_NEIGHBOR, newPixels, NO_LUT_UPDATE, NO_THRESHOLD, NONE, 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, get, getBackgroundValue, getBufferedImage, getf, getf, getHistogram, getHistogram, getInterpolatedPixel, getMax, getMin, getPixel, getPixelInterpolated, getPixels, getPixelsCopy, getPixelValue, getSnapshotPixels, isBinary, medianFilter, noise, putPixel, putPixelValue, reset, reset, resetMinAndMax, resize, rotate, scale, set, set, setBackgroundValue, setColor, setf, setf, setFromFloatArrays, setFromFloatProcessors, setMinAndMax, setPixels, setPixels, setSnapshotPixels, setThreshold, setValue, snapshot, threshold, toFloat, toFloatArrays, toFloatProcessors
 
Methods inherited from class ij.process.ImageProcessor
abs, add, add, and, autoThreshold, convertToByte, convertToFloat, convertToRGB, convertToShort, draw, drawDot, drawDot2, drawLine, drawOval, drawPolygon, drawRect, drawString, drawString, exp, fill, fill, fillOutside, fillOval, fillPolygon, findEdges, flipHorizontal, gamma, getAutoThreshold, getAutoThreshold, getBestIndex, getBicubicInterpolatedPixel, getCalibrationTable, getColorModel, getColumn, getCurrentColorModel, getDefaultColorModel, getFloatArray, getFont, getFontMetrics, getHeight, getHistogramMax, getHistogramMin, getHistogramSize, getIndexSampleModel, getIntArray, getInterpolate, getInterpolatedValue, getInterpolationMethods, getLine, getLineWidth, getLutUpdateMode, getMask, getMaskArray, getMaxThreshold, getMinThreshold, getNChannels, getNeighborhood, getPixel, getPixelCount, getRoi, getRow, getStatistics, getStringWidth, getWidth, hideProgress, insert, invert, invertLut, isColorLut, isDefaultLut, isInvertedLut, isKillable, isPseudoColorLut, lineTo, log, makeDefaultColorModel, maskSizeError, max, maxValue, min, minValue, moveTo, multiply, or, putColumn, putPixel, putRow, resetBinaryThreshold, resetRoi, resetThreshold, resize, rotateLeft, rotateRight, setAntialiasedText, setAutoThreshold, setAutoThreshold, setAutoThreshold, setBinaryThreshold, setCalibrationTable, setClipRect, setColor, setColorModel, setFloatArray, setFont, setHistogramRange, setHistogramSize, setIntArray, setInterpolate, setInterpolationMethod, setJustification, setLineWidth, setLutAnimation, setMask, setOverColor, setProgressBar, setRoi, setRoi, setRoi, setRoi, setSnapshotCopyMode, setUnderColor, setUseBicubic, sharpen, showProgress, smooth, sqr, sqrt, toString, translate, translate, updateComposite, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryProcessor

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

skeletonize

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".

Overrides:
skeletonize in class ByteProcessor

outline

public void outline()
Overrides:
outline in class ByteProcessor