Android Open Source - android-opencv-template Cv S V M Params






From Project

Back to project page android-opencv-template.

License

The source code is released under:

MIT License

If you think the Android project android-opencv-template listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//
// This file is auto-generated. Please don't modify it!
//// w  w  w . j  av  a  2 s . c  om
package org.opencv.ml;

import org.opencv.core.TermCriteria;

// C++: class CvSVMParams
/**
 * <p>SVM training parameters.</p>
 *
 * <p>The structure must be initialized and passed to the training method of
 * "CvSVM".</p>
 *
 * @see <a href="http://docs.opencv.org/modules/ml/doc/support_vector_machines.html#cvsvmparams">org.opencv.ml.CvSVMParams</a>
 */
public class CvSVMParams {

    protected final long nativeObj;
    protected CvSVMParams(long addr) { nativeObj = addr; }


    //
    // C++:   CvSVMParams::CvSVMParams()
    //

/**
 * <p>The constructors.</p>
 *
 * <p>The default constructor initialize the structure with following values:</p>
 *
 * <p><code></p>
 *
 * <p>// C++ code:</p>
 *
 * <p>CvSVMParams.CvSVMParams() :</p>
 *
 * <p>svm_type(CvSVM.C_SVC), kernel_type(CvSVM.RBF), degree(0),</p>
 *
 * <p>gamma(1), coef0(0), C(1), nu(0), p(0), class_weights(0)</p>
 *
 *
 * <p>term_crit = cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS, 1000,
 * FLT_EPSILON);</p>
 *
 *
 * @see <a href="http://docs.opencv.org/modules/ml/doc/support_vector_machines.html#cvsvmparams-cvsvmparams">org.opencv.ml.CvSVMParams.CvSVMParams</a>
 */
    public   CvSVMParams()
    {

        nativeObj = CvSVMParams_0();

        return;
    }


    //
    // C++: int CvSVMParams::svm_type
    //

    public  int get_svm_type()
    {

        int retVal = get_svm_type_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::svm_type
    //

    public  void set_svm_type(int svm_type)
    {

        set_svm_type_0(nativeObj, svm_type);

        return;
    }


    //
    // C++: int CvSVMParams::kernel_type
    //

    public  int get_kernel_type()
    {

        int retVal = get_kernel_type_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::kernel_type
    //

    public  void set_kernel_type(int kernel_type)
    {

        set_kernel_type_0(nativeObj, kernel_type);

        return;
    }


    //
    // C++: double CvSVMParams::degree
    //

    public  double get_degree()
    {

        double retVal = get_degree_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::degree
    //

    public  void set_degree(double degree)
    {

        set_degree_0(nativeObj, degree);

        return;
    }


    //
    // C++: double CvSVMParams::gamma
    //

    public  double get_gamma()
    {

        double retVal = get_gamma_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::gamma
    //

    public  void set_gamma(double gamma)
    {

        set_gamma_0(nativeObj, gamma);

        return;
    }


    //
    // C++: double CvSVMParams::coef0
    //

    public  double get_coef0()
    {

        double retVal = get_coef0_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::coef0
    //

    public  void set_coef0(double coef0)
    {

        set_coef0_0(nativeObj, coef0);

        return;
    }


    //
    // C++: double CvSVMParams::C
    //

    public  double get_C()
    {

        double retVal = get_C_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::C
    //

    public  void set_C(double C)
    {

        set_C_0(nativeObj, C);

        return;
    }


    //
    // C++: double CvSVMParams::nu
    //

    public  double get_nu()
    {

        double retVal = get_nu_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::nu
    //

    public  void set_nu(double nu)
    {

        set_nu_0(nativeObj, nu);

        return;
    }


    //
    // C++: double CvSVMParams::p
    //

    public  double get_p()
    {

        double retVal = get_p_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvSVMParams::p
    //

    public  void set_p(double p)
    {

        set_p_0(nativeObj, p);

        return;
    }


    //
    // C++: TermCriteria CvSVMParams::term_crit
    //

    public  TermCriteria get_term_crit()
    {

        TermCriteria retVal = new TermCriteria(get_term_crit_0(nativeObj));

        return retVal;
    }


    //
    // C++: void CvSVMParams::term_crit
    //

    public  void set_term_crit(TermCriteria term_crit)
    {

        set_term_crit_0(nativeObj, term_crit.type, term_crit.maxCount, term_crit.epsilon);

        return;
    }


    @Override
    protected void finalize() throws Throwable {
        delete(nativeObj);
    }



    // C++:   CvSVMParams::CvSVMParams()
    private static native long CvSVMParams_0();

    // C++: int CvSVMParams::svm_type
    private static native int get_svm_type_0(long nativeObj);

    // C++: void CvSVMParams::svm_type
    private static native void set_svm_type_0(long nativeObj, int svm_type);

    // C++: int CvSVMParams::kernel_type
    private static native int get_kernel_type_0(long nativeObj);

    // C++: void CvSVMParams::kernel_type
    private static native void set_kernel_type_0(long nativeObj, int kernel_type);

    // C++: double CvSVMParams::degree
    private static native double get_degree_0(long nativeObj);

    // C++: void CvSVMParams::degree
    private static native void set_degree_0(long nativeObj, double degree);

    // C++: double CvSVMParams::gamma
    private static native double get_gamma_0(long nativeObj);

    // C++: void CvSVMParams::gamma
    private static native void set_gamma_0(long nativeObj, double gamma);

    // C++: double CvSVMParams::coef0
    private static native double get_coef0_0(long nativeObj);

    // C++: void CvSVMParams::coef0
    private static native void set_coef0_0(long nativeObj, double coef0);

    // C++: double CvSVMParams::C
    private static native double get_C_0(long nativeObj);

    // C++: void CvSVMParams::C
    private static native void set_C_0(long nativeObj, double C);

    // C++: double CvSVMParams::nu
    private static native double get_nu_0(long nativeObj);

    // C++: void CvSVMParams::nu
    private static native void set_nu_0(long nativeObj, double nu);

    // C++: double CvSVMParams::p
    private static native double get_p_0(long nativeObj);

    // C++: void CvSVMParams::p
    private static native void set_p_0(long nativeObj, double p);

    // C++: TermCriteria CvSVMParams::term_crit
    private static native double[] get_term_crit_0(long nativeObj);

    // C++: void CvSVMParams::term_crit
    private static native void set_term_crit_0(long nativeObj, int term_crit_type, int term_crit_maxCount, double term_crit_epsilon);

    // native support for java finalize()
    private static native void delete(long nativeObj);

}




Java Source Code List

com.floatlearning.android_opencv_template.MainActivity.java
org.opencv.android.AsyncServiceHelper.java
org.opencv.android.BaseLoaderCallback.java
org.opencv.android.CameraBridgeViewBase.java
org.opencv.android.FpsMeter.java
org.opencv.android.InstallCallbackInterface.java
org.opencv.android.JavaCameraView.java
org.opencv.android.LoaderCallbackInterface.java
org.opencv.android.NativeCameraView.java
org.opencv.android.OpenCVLoader.java
org.opencv.android.StaticHelper.java
org.opencv.android.Utils.java
org.opencv.calib3d.Calib3d.java
org.opencv.calib3d.StereoBM.java
org.opencv.calib3d.StereoSGBM.java
org.opencv.contrib.Contrib.java
org.opencv.contrib.FaceRecognizer.java
org.opencv.contrib.StereoVar.java
org.opencv.core.Algorithm.java
org.opencv.core.Core.java
org.opencv.core.CvException.java
org.opencv.core.CvType.java
org.opencv.core.MatOfByte.java
org.opencv.core.MatOfDMatch.java
org.opencv.core.MatOfDouble.java
org.opencv.core.MatOfFloat4.java
org.opencv.core.MatOfFloat6.java
org.opencv.core.MatOfFloat.java
org.opencv.core.MatOfInt4.java
org.opencv.core.MatOfInt.java
org.opencv.core.MatOfKeyPoint.java
org.opencv.core.MatOfPoint2f.java
org.opencv.core.MatOfPoint3.java
org.opencv.core.MatOfPoint3f.java
org.opencv.core.MatOfPoint.java
org.opencv.core.MatOfRect.java
org.opencv.core.Mat.java
org.opencv.core.Point3.java
org.opencv.core.Point.java
org.opencv.core.Range.java
org.opencv.core.Rect.java
org.opencv.core.RotatedRect.java
org.opencv.core.Scalar.java
org.opencv.core.Size.java
org.opencv.core.TermCriteria.java
org.opencv.features2d.DMatch.java
org.opencv.features2d.DescriptorExtractor.java
org.opencv.features2d.DescriptorMatcher.java
org.opencv.features2d.FeatureDetector.java
org.opencv.features2d.Features2d.java
org.opencv.features2d.GenericDescriptorMatcher.java
org.opencv.features2d.KeyPoint.java
org.opencv.gpu.DeviceInfo.java
org.opencv.gpu.Gpu.java
org.opencv.gpu.TargetArchs.java
org.opencv.highgui.Highgui.java
org.opencv.highgui.VideoCapture.java
org.opencv.imgproc.CLAHE.java
org.opencv.imgproc.Imgproc.java
org.opencv.imgproc.Moments.java
org.opencv.imgproc.Subdiv2D.java
org.opencv.ml.CvANN_MLP_TrainParams.java
org.opencv.ml.CvANN_MLP.java
org.opencv.ml.CvBoostParams.java
org.opencv.ml.CvBoost.java
org.opencv.ml.CvDTreeParams.java
org.opencv.ml.CvDTree.java
org.opencv.ml.CvERTrees.java
org.opencv.ml.CvGBTreesParams.java
org.opencv.ml.CvGBTrees.java
org.opencv.ml.CvKNearest.java
org.opencv.ml.CvNormalBayesClassifier.java
org.opencv.ml.CvParamGrid.java
org.opencv.ml.CvRTParams.java
org.opencv.ml.CvRTrees.java
org.opencv.ml.CvSVMParams.java
org.opencv.ml.CvSVM.java
org.opencv.ml.CvStatModel.java
org.opencv.ml.EM.java
org.opencv.ml.Ml.java
org.opencv.objdetect.CascadeClassifier.java
org.opencv.objdetect.HOGDescriptor.java
org.opencv.objdetect.Objdetect.java
org.opencv.photo.Photo.java
org.opencv.utils.Converters.java
org.opencv.video.BackgroundSubtractorMOG2.java
org.opencv.video.BackgroundSubtractorMOG.java
org.opencv.video.BackgroundSubtractor.java
org.opencv.video.KalmanFilter.java
org.opencv.video.Video.java