ro.mosc.reco.preprocessing
Class ImageFilter
java.lang.Object
ro.mosc.reco.preprocessing.ImageFilter
- All Implemented Interfaces:
- java.awt.image.ImageObserver
public class ImageFilter
- extends java.lang.Object
- implements java.awt.image.ImageObserver
Image preprocessing util class.
Field Summary |
private int |
h
|
private java.awt.Image |
img
|
int[][] |
imgMatrix
|
private int |
w
|
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
img
private java.awt.Image img
imgMatrix
public int[][] imgMatrix
w
private int w
h
private int h
ImageFilter
public ImageFilter(java.awt.Image img)
blurAllDirections
public int[][] blurAllDirections(int[][] imgMatrix)
threshold
public int[][] threshold(int[][] imgMatrix,
int value)
skeleton
public int[][] skeleton(int[][] imgMatrix)
horizontalProfile
public int[][] horizontalProfile(int[][] imgMatrix)
getWidth
public int getWidth()
getHeight
public int getHeight()
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver