Facemorph
Class Filter

java.lang.Object
  extended by Facemorph.Filter

public class Filter
extends java.lang.Object

A 1D image filter


Field Summary
 int bm
          The border model to use 1= symmetric, -1=anti-symmetric
 float[] data
          The coefficients of this filter
 int m
          The midpoint of this filter
 
Constructor Summary
Filter()
          Constructs an empty filter
Filter(int M, float[] vals)
          Constructs a filter with the coefficeints and midpoint specified, the border model will be set to 1
Filter(int M, int BM, float[] vals)
          Construct a Filter with the midpoint, coefficients and border model specified
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public float[] data
The coefficients of this filter


m

public int m
The midpoint of this filter


bm

public int bm
The border model to use 1= symmetric, -1=anti-symmetric

Constructor Detail

Filter

public Filter()
Constructs an empty filter


Filter

public Filter(int M,
              float[] vals)
Constructs a filter with the coefficeints and midpoint specified, the border model will be set to 1

Parameters:
M - The midpoint of the filter
vals - The filter coeeficients

Filter

public Filter(int M,
              int BM,
              float[] vals)
Construct a Filter with the midpoint, coefficients and border model specified

Parameters:
M - The midpoint of this filter
BM - The border model to use (1=sym, -1=antisym)
vals - The filter coefficients