org.opencv.ml
Class EM
java.lang.Object
org.opencv.core.Algorithm
org.opencv.ml.StatModel
org.opencv.ml.EM
public class EM
- extends StatModel
Method Summary |
static EM |
create()
|
int |
getClustersNumber()
|
int |
getCovarianceMatrixType()
|
Mat |
getMeans()
|
TermCriteria |
getTermCriteria()
|
Mat |
getWeights()
|
double[] |
predict2(Mat sample,
Mat probs)
|
void |
setClustersNumber(int val)
|
void |
setCovarianceMatrixType(int val)
|
void |
setTermCriteria(TermCriteria val)
|
boolean |
trainE(Mat samples,
Mat means0)
|
boolean |
trainE(Mat samples,
Mat means0,
Mat covs0,
Mat weights0,
Mat logLikelihoods,
Mat labels,
Mat probs)
|
boolean |
trainEM(Mat samples)
|
boolean |
trainEM(Mat samples,
Mat logLikelihoods,
Mat labels,
Mat probs)
|
boolean |
trainM(Mat samples,
Mat probs0)
|
boolean |
trainM(Mat samples,
Mat probs0,
Mat logLikelihoods,
Mat labels,
Mat probs)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COV_MAT_DEFAULT
public static final int COV_MAT_DEFAULT
- See Also:
- Constant Field Values
COV_MAT_DIAGONAL
public static final int COV_MAT_DIAGONAL
- See Also:
- Constant Field Values
COV_MAT_GENERIC
public static final int COV_MAT_GENERIC
- See Also:
- Constant Field Values
COV_MAT_SPHERICAL
public static final int COV_MAT_SPHERICAL
- See Also:
- Constant Field Values
DEFAULT_MAX_ITERS
public static final int DEFAULT_MAX_ITERS
- See Also:
- Constant Field Values
DEFAULT_NCLUSTERS
public static final int DEFAULT_NCLUSTERS
- See Also:
- Constant Field Values
START_AUTO_STEP
public static final int START_AUTO_STEP
- See Also:
- Constant Field Values
START_E_STEP
public static final int START_E_STEP
- See Also:
- Constant Field Values
START_M_STEP
public static final int START_M_STEP
- See Also:
- Constant Field Values
create
public static EM create()
getClustersNumber
public int getClustersNumber()
getCovarianceMatrixType
public int getCovarianceMatrixType()
getMeans
public Mat getMeans()
getTermCriteria
public TermCriteria getTermCriteria()
getWeights
public Mat getWeights()
predict2
public double[] predict2(Mat sample,
Mat probs)
setClustersNumber
public void setClustersNumber(int val)
setCovarianceMatrixType
public void setCovarianceMatrixType(int val)
setTermCriteria
public void setTermCriteria(TermCriteria val)
trainE
public boolean trainE(Mat samples,
Mat means0)
trainE
public boolean trainE(Mat samples,
Mat means0,
Mat covs0,
Mat weights0,
Mat logLikelihoods,
Mat labels,
Mat probs)
trainEM
public boolean trainEM(Mat samples)
trainEM
public boolean trainEM(Mat samples,
Mat logLikelihoods,
Mat labels,
Mat probs)
trainM
public boolean trainM(Mat samples,
Mat probs0)
trainM
public boolean trainM(Mat samples,
Mat probs0,
Mat logLikelihoods,
Mat labels,
Mat probs)