Package org.opencv.ml

Class EM

    • Constructor Detail

      • EM

        protected EM​(long addr)
    • Method Detail

      • __fromPtr__

        public static EM __fromPtr__​(long addr)
      • getMeans

        public Mat getMeans()
      • getWeights

        public Mat getWeights()
      • create

        public static EM create()
      • load

        public static EM load​(String filepath)
      • predict2

        public double[] predict2​(Mat sample,
                                 Mat probs)
      • trainE

        public boolean trainE​(Mat samples,
                              Mat means0,
                              Mat covs0,
                              Mat weights0,
                              Mat logLikelihoods,
                              Mat labels,
                              Mat probs)
      • trainE

        public boolean trainE​(Mat samples,
                              Mat means0,
                              Mat covs0,
                              Mat weights0,
                              Mat logLikelihoods,
                              Mat labels)
      • trainE

        public boolean trainE​(Mat samples,
                              Mat means0,
                              Mat covs0,
                              Mat weights0,
                              Mat logLikelihoods)
      • trainE

        public boolean trainE​(Mat samples,
                              Mat means0,
                              Mat covs0,
                              Mat weights0)
      • trainE

        public boolean trainE​(Mat samples,
                              Mat means0,
                              Mat covs0)
      • trainE

        public boolean trainE​(Mat samples,
                              Mat means0)
      • trainEM

        public boolean trainEM​(Mat samples,
                               Mat logLikelihoods,
                               Mat labels,
                               Mat probs)
      • trainEM

        public boolean trainEM​(Mat samples,
                               Mat logLikelihoods,
                               Mat labels)
      • trainEM

        public boolean trainEM​(Mat samples,
                               Mat logLikelihoods)
      • trainEM

        public boolean trainEM​(Mat samples)
      • trainM

        public boolean trainM​(Mat samples,
                              Mat probs0,
                              Mat logLikelihoods,
                              Mat labels,
                              Mat probs)
      • trainM

        public boolean trainM​(Mat samples,
                              Mat probs0,
                              Mat logLikelihoods,
                              Mat labels)
      • trainM

        public boolean trainM​(Mat samples,
                              Mat probs0,
                              Mat logLikelihoods)
      • trainM

        public boolean trainM​(Mat samples,
                              Mat probs0)
      • predict

        public float predict​(Mat samples,
                             Mat results,
                             int flags)
        Overrides:
        predict in class StatModel
      • getClustersNumber

        public int getClustersNumber()
      • getCovarianceMatrixType

        public int getCovarianceMatrixType()
      • getCovs

        public void getCovs​(List<Mat> covs)
      • setClustersNumber

        public void setClustersNumber​(int val)
      • setCovarianceMatrixType

        public void setCovarianceMatrixType​(int val)
      • setTermCriteria

        public void setTermCriteria​(TermCriteria val)