com.jhlabs.image

Class SkeletonFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class SkeletonFilter
extends BinaryFilter

A filter which reduces a binary image to a skeleton. Based on an algorithm by Zhang and Suen (CACM, March 1984, 236-239).

Field Summary

Fields inherited from class com.jhlabs.image.BinaryFilter

blackFunction, colormap, iterations, newColor

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

SkeletonFilter()

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
String
toString()

Methods inherited from class com.jhlabs.image.BinaryFilter

getBlackFunction, getColormap, getIterations, getNewColor, setBlackFunction, setColormap, setIterations, setNewColor

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

SkeletonFilter

public SkeletonFilter()

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Overrides:
filterPixels in interface WholeImageFilter

toString

public String toString()