ro.mosc.reco.preprocessing
Class ImageFilter

java.lang.Object
  extended by 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
 
Constructor Summary
ImageFilter(java.awt.Image img)
           
 
Method Summary
 int[][] blurAllDirections(int[][] imgMatrix)
           
 int getHeight()
           
 int getWidth()
           
 int[][] horizontalProfile(int[][] imgMatrix)
           
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
           
 int[][] skeleton(int[][] imgMatrix)
           
 int[][] threshold(int[][] imgMatrix, int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

img

private java.awt.Image img

imgMatrix

public int[][] imgMatrix

w

private int w

h

private int h
Constructor Detail

ImageFilter

public ImageFilter(java.awt.Image img)
Method Detail

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