|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.oesf.FilterSet
public class FilterSet
Represents a set of filters (for a particular viewpoint
Constructor Summary | |
---|---|
FilterSet(java.util.ArrayList<Complex[]> filters,
java.util.ArrayList<double[]> priors)
Constructor for a FilterSet |
|
FilterSet(int count)
Constructor for a set of filters |
|
FilterSet(java.lang.String file)
Constructor for a set of filters |
Method Summary | |
---|---|
void |
addFilter(Complex[] filt,
double[] prior)
Add a flter to the set |
Complex[] |
getFilter(int i)
Get the ith filter |
java.util.ArrayList<double[]> |
getPriors()
Get all the priors |
void |
initialisePriors(Template3D t3d,
BigMat R,
double[] T,
double scale,
java.util.ArrayList<double[]> priorsView0,
java.util.ArrayList<java.lang.Boolean> visible)
Initialise the priors |
void |
read(java.lang.String file)
Read a filter set |
void |
updateResponses(FloatImage fimg)
Update the responses to the filters fitlering this image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterSet(java.lang.String file) throws java.io.FileNotFoundException
file
- the filters set file to read
java.io.FileNotFoundException
public FilterSet(int count)
count
- the number of filters in the setpublic FilterSet(java.util.ArrayList<Complex[]> filters, java.util.ArrayList<double[]> priors)
filters
- the set of filters to usepriors
- the priors, as the 5 parameters of a 2D GaussianMethod Detail |
---|
public void read(java.lang.String file) throws java.io.FileNotFoundException
file
- the file to read from
java.io.FileNotFoundException
public void updateResponses(FloatImage fimg)
fimg
- the image to filterpublic Complex[] getFilter(int i)
i
- the index of the filter in the set
public void addFilter(Complex[] filt, double[] prior)
filt
- the Fourier domain filter to addprior
- the prior as the paramteres of a 2D Gaussianpublic java.util.ArrayList<double[]> getPriors()
public void initialisePriors(Template3D t3d, BigMat R, double[] T, double scale, java.util.ArrayList<double[]> priorsView0, java.util.ArrayList<java.lang.Boolean> visible)
t3d
- the 3D templateR
- the rotation matrixT
- the translation vectorscale
- the salepriorsView0
- the priors in view 0visible
- the visible set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |