net.sourceforge.javaocr.filter
Class IntegralImageFilter
java.lang.Object
net.sourceforge.javaocr.filter.AbstractIntegralImageFilter
net.sourceforge.javaocr.filter.IntegralImageFilter
- All Implemented Interfaces:
- ImageFilter
public class IntegralImageFilter
- extends AbstractIntegralImageFilter
computes integral image. result is stored in the allocated image
to be retrieved. Basically it is sum of all pixels from top-left part
of image relative to current pixel. this filter can work in place, but
intended usage tells us to create and cache destination image
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegralImageFilter
public IntegralImageFilter(Image resultImage)
- image to be used as result. size shall match to processed
images. responsibility lies on caller. you are also responsible for format
so that values do not overflow
- Parameters:
resultImage -
processPixel
protected int processPixel(int pixel)
- Specified by:
processPixel in class AbstractIntegralImageFilter
Copyright © -2012. All Rights Reserved.