|
OpenCV 2.4.2 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencv.ml.CvStatModel
public class CvStatModel
Base class for statistical models in ML.
In this declaration, some methods are commented off. These are methods for which there is no unified API (with the exception of the default constructor). However, there are many similarities in the syntax and semantics that are briefly described below in this section, as if they are part of the base class.
| Field Summary | |
|---|---|
protected long |
nativeObj
|
| Constructor Summary | |
|---|---|
protected |
CvStatModel(long addr)
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
void |
load(java.lang.String filename)
Loads the model from a file. |
void |
load(java.lang.String filename,
java.lang.String name)
Loads the model from a file. |
void |
save(java.lang.String filename)
Saves the model to a file. |
void |
save(java.lang.String filename,
java.lang.String name)
Saves the model to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final long nativeObj
| Constructor Detail |
|---|
protected CvStatModel(long addr)
| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void load(java.lang.String filename)
Loads the model from a file.
The method load loads the complete model state with the
specified name (or default model-dependent name) from the specified XML or
YAML file. The previous model state is cleared by "CvStatModel.clear".
filename - a filename
public void load(java.lang.String filename,
java.lang.String name)
Loads the model from a file.
The method load loads the complete model state with the
specified name (or default model-dependent name) from the specified XML or
YAML file. The previous model state is cleared by "CvStatModel.clear".
filename - a filenamename - a namepublic void save(java.lang.String filename)
Saves the model to a file.
The method save saves the complete model state to the specified
XML or YAML file with the specified name or default name (which depends on a
particular class). *Data persistence* functionality from CxCore
is used.
filename - a filename
public void save(java.lang.String filename,
java.lang.String name)
Saves the model to a file.
The method save saves the complete model state to the specified
XML or YAML file with the specified name or default name (which depends on a
particular class). *Data persistence* functionality from CxCore
is used.
filename - a filenamename - a name
|
Official OpenCV 2.4 Documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||