Package org.opencv.ml

Class SVM

    • Constructor Detail

      • SVM

        protected SVM​(long addr)
    • Method Detail

      • __fromPtr__

        public static SVM __fromPtr__​(long addr)
      • getClassWeights

        public Mat getClassWeights()
      • getSupportVectors

        public Mat getSupportVectors()
      • getUncompressedSupportVectors

        public Mat getUncompressedSupportVectors()
      • getDefaultGridPtr

        public static ParamGrid getDefaultGridPtr​(int param_id)
      • create

        public static SVM create()
      • load

        public static SVM load​(java.lang.String filepath)
      • trainAuto

        public boolean trainAuto​(Mat samples,
                                 int layout,
                                 Mat responses,
                                 int kFold,
                                 ParamGrid Cgrid,
                                 ParamGrid gammaGrid)
      • trainAuto

        public boolean trainAuto​(Mat samples,
                                 int layout,
                                 Mat responses,
                                 int kFold,
                                 ParamGrid Cgrid)
      • trainAuto

        public boolean trainAuto​(Mat samples,
                                 int layout,
                                 Mat responses,
                                 int kFold)
      • trainAuto

        public boolean trainAuto​(Mat samples,
                                 int layout,
                                 Mat responses)
      • getC

        public double getC()
      • getCoef0

        public double getCoef0()
      • getDecisionFunction

        public double getDecisionFunction​(int i,
                                          Mat alpha,
                                          Mat svidx)
      • getDegree

        public double getDegree()
      • getGamma

        public double getGamma()
      • getNu

        public double getNu()
      • getP

        public double getP()
      • getKernelType

        public int getKernelType()
      • getType

        public int getType()
      • setC

        public void setC​(double val)
      • setClassWeights

        public void setClassWeights​(Mat val)
      • setCoef0

        public void setCoef0​(double val)
      • setDegree

        public void setDegree​(double val)
      • setGamma

        public void setGamma​(double val)
      • setKernel

        public void setKernel​(int kernelType)
      • setNu

        public void setNu​(double val)
      • setP

        public void setP​(double val)
      • setTermCriteria

        public void setTermCriteria​(TermCriteria val)
      • setType

        public void setType​(int val)
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class StatModel
        Throws:
        java.lang.Throwable