|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.psm.DiagonalGMMFeature
public class DiagonalGMMFeature
Diagonal GMM Feature implementation
Constructor Summary | |
---|---|
DiagonalGMMFeature()
DiagonalGMMFeature constructor |
Method Summary | |
---|---|
void |
addSample(int featureIndex,
java.awt.geom.Point2D.Float p)
Add a sample when training the patches |
double[] |
getFeatureVector(java.awt.geom.Point2D.Float p)
Get the feature vector at the location specified |
FloatImage |
getProbability(int featureIndex)
Get the probability image for a particular feature |
void |
normalise()
Normalise the feature models if needed at the end of training |
void |
read(java.io.StreamTokenizer st,
java.lang.String folder,
boolean url)
Read a feature from a file or url |
void |
setFeatureCount(int count)
Sets the number of features |
void |
setImage(java.awt.Image img)
Set the image to use |
void |
write(java.io.PrintStream out,
java.lang.String folder)
Write teh feature to a PrintStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagonalGMMFeature()
Method Detail |
---|
public void setFeatureCount(int count)
Feature
setFeatureCount
in interface Feature
count
- the number of featurespublic double[] getFeatureVector(java.awt.geom.Point2D.Float p)
Feature
getFeatureVector
in interface Feature
p
- the point to sample
public void setImage(java.awt.Image img)
Feature
setImage
in interface Feature
img
- the image to usepublic void addSample(int featureIndex, java.awt.geom.Point2D.Float p)
Feature
addSample
in interface Feature
public void normalise()
Feature
normalise
in interface Feature
public void read(java.io.StreamTokenizer st, java.lang.String folder, boolean url) throws java.io.IOException
Feature
read
in interface Feature
st
- the StreamTokenizer to usefolder
- useful for writing parts in separate files (maybe?)url
- is this a URL you're writing to
java.io.IOException
public void write(java.io.PrintStream out, java.lang.String folder)
Feature
write
in interface Feature
out
- the output streamfolder
- the folder to write (this and child nodes) topublic FloatImage getProbability(int featureIndex)
Feature
getProbability
in interface Feature
featureIndex
- the feature number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |