Class FM
java.lang.Object
|
+----framework.ModuleData
|
+----FM
- class FM
- extends ModuleData
- implements Data
The Feature Map is a data structure that contains the coordinates of the 7
different features that are used: Picture, Head, Symmetry line, Lines,
Left Eye, Right Eye, Mouth, Nose.
The following information is stored of all features: the x and y coordinate
of the bottom-left corner and the x and y coordinate of the top-right corner.
- Version:
- $Revision: 1.15 $
- See Also:
- Data
-
feature
- List of all feature coordinates.
-
featureNames
- List of all feature names.
-
HEAD
-
-
LEFTEYE
-
-
LEFTEYEBROW
-
-
LINE
-
-
MOUTH
-
-
NOSE
-
-
observable
- The observable object, or "data" in the model-view paradigm.
-
PICTURE
-
-
RIGHTEYE
-
-
RIGHTEYEBROW
-
-
FM()
-
-
copy()
-
-
display(String, String)
- Display the Feature Maps.
-
fillFMPanel(Panel)
- Fill the feature map panel.
-
getFeatureNames()
-
-
getFeatures()
-
-
getLoadTags()
- Define the valid extensions that files of this data type may use
when loading data from disk.
-
getNrOfFeatures()
-
-
getObservable()
- Get the feature map observable.
-
getSaveTags()
- Define the valid extensions that files of this data type may use
when saving data to disk.
-
load(String)
- Load the feature map from disk.
-
main(String[])
-
-
makeFeatures(int)
-
-
save(String)
- Save the feature map to disk.
-
toString()
-
featureNames
static final String featureNames[]
- List of all feature names.
PICTURE
static final int PICTURE
HEAD
static final int HEAD
LINE
static final int LINE
LEFTEYE
static final int LEFTEYE
RIGHTEYE
static final int RIGHTEYE
MOUTH
static final int MOUTH
NOSE
static final int NOSE
LEFTEYEBROW
static final int LEFTEYEBROW
RIGHTEYEBROW
static final int RIGHTEYEBROW
feature
public int feature[][]
- List of all feature coordinates. First index is for the feature
number, the second for the 4 coordinates.
observable
private FMObservable observable
- The observable object, or "data" in the model-view paradigm. It
represents the object that the application wants to have observed.
FM
FM()
getNrOfFeatures
public int getNrOfFeatures()
getFeatures
public int[][] getFeatures()
getFeatureNames
public String[] getFeatureNames()
getObservable
public FMObservable getObservable()
- Get the feature map observable.
makeFeatures
public void makeFeatures(int f)
copy
public FM copy()
getLoadTags
protected String[] getLoadTags()
- Define the valid extensions that files of this data type may use
when loading data from disk.
- Overrides:
- getLoadTags in class ModuleData
getSaveTags
protected String[] getSaveTags()
- Define the valid extensions that files of this data type may use
when saving data to disk.
- Overrides:
- getSaveTags in class ModuleData
load
public void load(String filename) throws FileNotFoundException, IOException
- Load the feature map from disk. The original 'ReadFeatMap' function
can be found in the fm_read.c file and is used in a.o. the rfm2cfm
module of Piet de Bondt. It wasn't that big so I (Jos Vollering)
converted it to java. (no loading of extra shared library).
- Overrides:
- load in class ModuleData
save
public void save(String filename) throws FileNotFoundException, IOException
- Save the feature map to disk. The original 'WriteFeatMap' function
can be found in the fm_write.c file and is used in a.o. the rfm2cfm
module of Piet de Bondt. It wasn't that big so I (Jos Vollering)
converted it to java. (no loading of extra shared library).
- Overrides:
- save in class ModuleData
display
public DataVisualisation display(String title,
String filename)
- Display the Feature Maps.
- Overrides:
- display in class ModuleData
fillFMPanel
public void fillFMPanel(Panel panel)
- Fill the feature map panel.
toString
public String toString()
- Overrides:
- toString in class Object
main
public static void main(String args[])