net.sourceforge.javaocr.plugin.morphology
Class AbstractMorphologyFilter

java.lang.Object
  extended by 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

Field Summary
protected  Image destImage
           
protected  int empty
           
protected  int full
           
protected  Image seImage
           
protected  int seImageH
           
protected  int seImageW
           
protected  int sizeB
           
protected  int sizeL
           
protected  int sizeR
           
protected  int sizeT
           
 
Constructor Summary
AbstractMorphologyFilter(Image strElem, Image dest, int fg, int bg)
          Create a mathematical morphology filter, e.g.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.javaocr.ImageFilter
process
 

Field Detail

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
Constructor Detail

AbstractMorphologyFilter

public AbstractMorphologyFilter(Image strElem,
                                Image dest,
                                int fg,
                                int bg)
Create a mathematical morphology filter, e.g. erosion and dilation

Parameters:
strElem - Structuring element
dest - Output image
fg - Foreground value
bg - Background value


Copyright © -2012. All Rights Reserved.