net.sourceforge.javaocr.filter
Class LookupTableFilter

java.lang.Object
  extended by net.sourceforge.javaocr.filter.AbstractSinglePixelFilter
      extended by net.sourceforge.javaocr.filter.LookupTableFilter
All Implemented Interfaces:
ImageFilter
Direct Known Subclasses:
GrayscaleToRGBA, NormaliseGrayscaleFilter

public class LookupTableFilter
extends AbstractSinglePixelFilter

apply lookup table to image


Field Summary
(package private)  int[] lut
           
 
Constructor Summary
LookupTableFilter(int[] lut)
          construct with supplied lookup table
 
Method Summary
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

lut

int[] lut
Constructor Detail

LookupTableFilter

public LookupTableFilter(int[] lut)
construct with supplied lookup table

Parameters:
lut -
Method Detail

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.