net.sourceforge.javaocr.plugin.moment
Class HuMoments
java.lang.Object
net.sourceforge.javaocr.plugin.moment.HuMoments
- All Implemented Interfaces:
- FeatureExtractor
public class HuMoments
- extends Object
- implements FeatureExtractor
class encapsulate Hu moment computations. See Gonzalez/Woods, Digital Image Processing, Prentice Hall
or Theodoridis/Koutroumbas, Pattern Recognition, Academic Press
http://www.informatik.haw-hamburg.de/fileadmin/Homepages/ProfMeisel/Vorlesungen/WP_RobotVision/V/RV06.pdf
pages 44-46
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HuMoments
public HuMoments()
extract
public double[] extract(Image image)
- Specified by:
extract in interface FeatureExtractor
getSize
public int getSize()
- tehre are 7 momemts defined
- Specified by:
getSize in interface FeatureExtractor
- Returns:
Copyright © -2012. All Rights Reserved.