net.sourceforge.javaocr.plugin.moment
Class RawMomentFilter
java.lang.Object
net.sourceforge.javaocr.plugin.moment.AbstractMomentFilter
net.sourceforge.javaocr.plugin.moment.RawMomentFilter
- All Implemented Interfaces:
- ImageFilter
public class RawMomentFilter
- extends AbstractMomentFilter
process image and compute raw image moment. does not modify the image. this filter is stateful and not thread safe
|
Constructor Summary |
RawMomentFilter(int p,
int q)
filter computing moment with given cardinality |
|
Method Summary |
protected double[] |
precomputeX(Image image)
precompute x coefficient array |
protected double[] |
precomputeY(Image image)
precompute y coefficients array |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawMomentFilter
public RawMomentFilter(int p,
int q)
- filter computing moment with given cardinality
- Parameters:
p - q -
precomputeX
protected double[] precomputeX(Image image)
- Description copied from class:
AbstractMomentFilter
- precompute x coefficient array
- Specified by:
precomputeX in class AbstractMomentFilter
precomputeY
protected double[] precomputeY(Image image)
- Description copied from class:
AbstractMomentFilter
- precompute y coefficients array
- Specified by:
precomputeY in class AbstractMomentFilter
Copyright © -2012. All Rights Reserved.