net.sourceforge.javaocr.plugin.moment
Class RawMomentFilter

java.lang.Object
  extended by net.sourceforge.javaocr.plugin.moment.AbstractMomentFilter
      extended by 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


Field Summary
 
Fields inherited from class net.sourceforge.javaocr.plugin.moment.AbstractMomentFilter
coeffx, coeffy, moment, p, q
 
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 net.sourceforge.javaocr.plugin.moment.AbstractMomentFilter
getMoment, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawMomentFilter

public RawMomentFilter(int p,
                       int q)
filter computing moment with given cardinality

Parameters:
p -
q -
Method Detail

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.