|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.mdl.SpecificityCombinedTest
public class SpecificityCombinedTest
Specificity tester for combined shape + appearance models
Constructor Summary | |
---|---|
SpecificityCombinedTest(java.util.ArrayList<java.awt.image.BufferedImage> bimages,
java.util.ArrayList<java.lang.String> warpNames,
Template average,
Mask mask)
Constructor for SpecificityCombinedTestFile |
Method Summary | |
---|---|
double |
calculateError(FloatImage[] img1,
FloatImage[] img2)
Calculates the error between two Ts |
double[] |
calculateSpecificity(int comps,
int trials)
Calculates the specitivity of the model |
double |
findMinError(FloatImage[] testImg)
Find the minimum error from the set of Ts |
static void |
main(java.lang.String[] args)
Run the tests |
FloatImage[] |
makeRandom(int comps)
Makes a random T from the model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpecificityCombinedTest(java.util.ArrayList<java.awt.image.BufferedImage> bimages, java.util.ArrayList<java.lang.String> warpNames, Template average, Mask mask) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
bimages
- list of images to test withwarpNames
- the names of the warps to test withaverage
- the average Templatemask
- the mask to use to select the face area
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
Method Detail |
---|
public FloatImage[] makeRandom(int comps)
SpecificityTest
makeRandom
in interface SpecificityTest<FloatImage[]>
comps
- the number of model components to use
public double calculateError(FloatImage[] img1, FloatImage[] img2)
SpecificityTest
calculateError
in interface SpecificityTest<FloatImage[]>
img1
- first Timg2
- second T
public double findMinError(FloatImage[] testImg)
SpecificityTest
findMinError
in interface SpecificityTest<FloatImage[]>
testImg
- the test template
public double[] calculateSpecificity(int comps, int trials) throws java.io.IOException
SpecificityTest
calculateSpecificity
in interface SpecificityTest<FloatImage[]>
comps
- the number of model components to usetrials
- the number of trials to performs
java.io.IOException
- may be thrown if data is readpublic static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
args
- args[0] = test list file name, args[1] = template to read, args[2] file to write to
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |