net.sourceforge.javaocr.filter
Class LookupTableFilter
java.lang.Object
net.sourceforge.javaocr.filter.AbstractSinglePixelFilter
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lut
int[] lut
LookupTableFilter
public LookupTableFilter(int[] lut)
- construct with supplied lookup table
- Parameters:
lut -
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.