net.sourceforge.javaocr.plugin.morphology
Class AbstractMorphologyFilter
java.lang.Object
net.sourceforge.javaocr.plugin.morphology.AbstractMorphologyFilter
- All Implemented Interfaces:
- ImageFilter
- Direct Known Subclasses:
- DilationFilter, ErosionFilter
public abstract class AbstractMorphologyFilter
- extends Object
- implements ImageFilter
Abstract class for mathematical morphology filters.
The basic idea in binary morphology is to probe an image with a simple,
pre-defined shape, drawing conclusions on how this shape fits or misses the
shapes in the image. This simple "probe" is called structuring element, and
is itself a binary image. Typical structuring elements are 3x3 square and
3x3 cross (i.e. a 3x3 "plus sign" image).
http://en.wikipedia.org/wiki/Mathematical_morphology#Binary_morphology
http://en.wikipedia.org/wiki/Structuring_element
- Author:
- Andrea De Pasquale
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
seImage
protected Image seImage
destImage
protected Image destImage
seImageW
protected int seImageW
seImageH
protected int seImageH
sizeL
protected int sizeL
sizeR
protected int sizeR
sizeT
protected int sizeT
sizeB
protected int sizeB
full
protected int full
empty
protected int empty
AbstractMorphologyFilter
public AbstractMorphologyFilter(Image strElem,
Image dest,
int fg,
int bg)
- Create a mathematical morphology filter, e.g. erosion and dilation
- Parameters:
strElem - Structuring elementdest - Output imagefg - Foreground valuebg - Background value
Copyright © -2012. All Rights Reserved.