Facemorph
Class AWN

java.lang.Object
  extended by Facemorph.AWN

public class AWN
extends java.lang.Object

Protoype (i.e. not working) Active Wavelet Network object detector


Field Summary
 float intensity
          The intensity of something
 
Constructor Summary
AWN()
          Creates a new instance of AWN
 
Method Summary
 void addWavelet(Facemorph.Wavelet w)
          Add the given wavelet to the set of wavelets
 FloatImage draw(int w, int h)
          Draws the wavelets to a FloatImage
 void fitToImage(FloatImage fimg)
          Attempt to fit a wavelet network to an image
 void initialise(int count, int width, int height, float inten)
          Initialises the AWN with some random data
static void main(java.lang.String[] args)
          Main method for testing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

intensity

public float intensity
The intensity of something

Constructor Detail

AWN

public AWN()
Creates a new instance of AWN

Method Detail

draw

public FloatImage draw(int w,
                       int h)
Draws the wavelets to a FloatImage

Parameters:
w - The width of the FloatImage
h - The height of the FloatImage
Returns:
The FloatImage with the rendered wavelets

addWavelet

public void addWavelet(Facemorph.Wavelet w)
Add the given wavelet to the set of wavelets

Parameters:
w - The wavelet to add

fitToImage

public void fitToImage(FloatImage fimg)
Attempt to fit a wavelet network to an image

Parameters:
fimg - The image to fit the AWN to

initialise

public void initialise(int count,
                       int width,
                       int height,
                       float inten)
Initialises the AWN with some random data

Parameters:
count - The number of wavelets
width - width of the image to fit them into
height - height of the image to fit them into
inten - the peak intensity

main

public static void main(java.lang.String[] args)
Main method for testing

Parameters:
args - String args not currently used (hard coded tests)