net.sourceforge.javaocr.filter
Class RangeFilter

java.lang.Object
  extended by net.sourceforge.javaocr.filter.AbstractSinglePixelFilter
      extended by net.sourceforge.javaocr.filter.RangeFilter
All Implemented Interfaces:
ImageFilter

public class RangeFilter
extends AbstractSinglePixelFilter

gather min and max values from supplied pixels

Author:
Konstantin Pribluda

Field Summary
(package private)  int max
           
(package private)  int min
           
 
Constructor Summary
RangeFilter()
           
 
Method Summary
 int getMax()
           
 int getMin()
           
protected  void processPixel(Image image)
          process single image pixel subclass shall retrieve current pixel value with image.next() and store it with image.put() after processing
 
Methods inherited from class net.sourceforge.javaocr.filter.AbstractSinglePixelFilter
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

int min

max

int max
Constructor Detail

RangeFilter

public RangeFilter()
Method Detail

getMax

public int getMax()

getMin

public int getMin()

processPixel

protected void processPixel(Image image)
Description copied from class: AbstractSinglePixelFilter
process single image pixel subclass shall retrieve current pixel value with image.next() and store it with image.put() after processing

Specified by:
processPixel in class AbstractSinglePixelFilter


Copyright © -2012. All Rights Reserved.