|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.PCW
public class PCW
Principal component wavelets class
| Constructor Summary | |
|---|---|
PCW()
Creates a new instance of PCW |
|
| Method Summary | |
|---|---|
double[] |
analyse(Pyramid pyr)
Finds the best weights for the given Pyramid |
double[] |
analyseMasked(Pyramid pyr,
FloatImage mask)
Finds the weights of this Pyramid after masking |
Pyramid |
getAverage()
Get the mean pyramid |
Pyramid |
getComponent(int i)
Get the ith component |
int |
getCount()
Get the number of components |
static void |
main(java.lang.String[] args)
Main method used for testing |
void |
read(java.lang.String file,
int maxComp)
Reads PCI data from a directory |
Pyramid |
reconstruct(double[] w)
Build a Pyramid using the weights given |
Pyramid |
reconstruct(float[] w)
Build a Pyramid using the weights given |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PCW()
| Method Detail |
|---|
public int getCount()
public Pyramid getAverage()
public Pyramid getComponent(int i)
i - the index of the required component
public void read(java.lang.String file,
int maxComp)
file - The text file containing the names of the image component files and their variancemaxComp - The maximum number of components to readpublic Pyramid reconstruct(double[] w)
w - the weights parameter
public Pyramid reconstruct(float[] w)
w - the weights parameter
public double[] analyse(Pyramid pyr)
pyr - the Pyramid to analyse
public double[] analyseMasked(Pyramid pyr,
FloatImage mask)
pyr - The Pyramid to analysemask - the mask to use
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||