Android Open Source - android-opencv-template Cv D Tree 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!
///*from ww w .ja  va 2 s  .  c  o m*/
package org.opencv.ml;



// C++: class CvDTreeParams
/**
 * <p>The structure contains all the decision tree training parameters. You can
 * initialize it by default constructor and then override any parameters
 * directly before training, or the structure may be fully initialized using the
 * advanced variant of the constructor.</p>
 *
 * @see <a href="http://docs.opencv.org/modules/ml/doc/decision_trees.html#cvdtreeparams">org.opencv.ml.CvDTreeParams</a>
 */
public class CvDTreeParams {

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


    //
    // C++:   CvDTreeParams::CvDTreeParams()
    //

/**
 * <p>The constructors.</p>
 *
 * <p>The default constructor initializes all the parameters with the default
 * values tuned for the standalone classification tree:</p>
 *
 * <p><code></p>
 *
 * <p>// C++ code:</p>
 *
 * <p>CvDTreeParams() : max_categories(10), max_depth(INT_MAX), min_sample_count(10),</p>
 *
 * <p>cv_folds(10), use_surrogates(true), use_1se_rule(true),</p>
 *
 * <p>truncate_pruned_tree(true), regression_accuracy(0.01f), priors(0)</p>
 *
 * <p>{}</p>
 *
 * @see <a href="http://docs.opencv.org/modules/ml/doc/decision_trees.html#cvdtreeparams-cvdtreeparams">org.opencv.ml.CvDTreeParams.CvDTreeParams</a>
 */
    public   CvDTreeParams()
    {

        nativeObj = CvDTreeParams_0();

        return;
    }


    //
    // C++: int CvDTreeParams::max_categories
    //

    public  int get_max_categories()
    {

        int retVal = get_max_categories_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::max_categories
    //

    public  void set_max_categories(int max_categories)
    {

        set_max_categories_0(nativeObj, max_categories);

        return;
    }


    //
    // C++: int CvDTreeParams::max_depth
    //

    public  int get_max_depth()
    {

        int retVal = get_max_depth_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::max_depth
    //

    public  void set_max_depth(int max_depth)
    {

        set_max_depth_0(nativeObj, max_depth);

        return;
    }


    //
    // C++: int CvDTreeParams::min_sample_count
    //

    public  int get_min_sample_count()
    {

        int retVal = get_min_sample_count_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::min_sample_count
    //

    public  void set_min_sample_count(int min_sample_count)
    {

        set_min_sample_count_0(nativeObj, min_sample_count);

        return;
    }


    //
    // C++: int CvDTreeParams::cv_folds
    //

    public  int get_cv_folds()
    {

        int retVal = get_cv_folds_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::cv_folds
    //

    public  void set_cv_folds(int cv_folds)
    {

        set_cv_folds_0(nativeObj, cv_folds);

        return;
    }


    //
    // C++: bool CvDTreeParams::use_surrogates
    //

    public  boolean get_use_surrogates()
    {

        boolean retVal = get_use_surrogates_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::use_surrogates
    //

    public  void set_use_surrogates(boolean use_surrogates)
    {

        set_use_surrogates_0(nativeObj, use_surrogates);

        return;
    }


    //
    // C++: bool CvDTreeParams::use_1se_rule
    //

    public  boolean get_use_1se_rule()
    {

        boolean retVal = get_use_1se_rule_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::use_1se_rule
    //

    public  void set_use_1se_rule(boolean use_1se_rule)
    {

        set_use_1se_rule_0(nativeObj, use_1se_rule);

        return;
    }


    //
    // C++: bool CvDTreeParams::truncate_pruned_tree
    //

    public  boolean get_truncate_pruned_tree()
    {

        boolean retVal = get_truncate_pruned_tree_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::truncate_pruned_tree
    //

    public  void set_truncate_pruned_tree(boolean truncate_pruned_tree)
    {

        set_truncate_pruned_tree_0(nativeObj, truncate_pruned_tree);

        return;
    }


    //
    // C++: float CvDTreeParams::regression_accuracy
    //

    public  float get_regression_accuracy()
    {

        float retVal = get_regression_accuracy_0(nativeObj);

        return retVal;
    }


    //
    // C++: void CvDTreeParams::regression_accuracy
    //

    public  void set_regression_accuracy(float regression_accuracy)
    {

        set_regression_accuracy_0(nativeObj, regression_accuracy);

        return;
    }


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



    // C++:   CvDTreeParams::CvDTreeParams()
    private static native long CvDTreeParams_0();

    // C++: int CvDTreeParams::max_categories
    private static native int get_max_categories_0(long nativeObj);

    // C++: void CvDTreeParams::max_categories
    private static native void set_max_categories_0(long nativeObj, int max_categories);

    // C++: int CvDTreeParams::max_depth
    private static native int get_max_depth_0(long nativeObj);

    // C++: void CvDTreeParams::max_depth
    private static native void set_max_depth_0(long nativeObj, int max_depth);

    // C++: int CvDTreeParams::min_sample_count
    private static native int get_min_sample_count_0(long nativeObj);

    // C++: void CvDTreeParams::min_sample_count
    private static native void set_min_sample_count_0(long nativeObj, int min_sample_count);

    // C++: int CvDTreeParams::cv_folds
    private static native int get_cv_folds_0(long nativeObj);

    // C++: void CvDTreeParams::cv_folds
    private static native void set_cv_folds_0(long nativeObj, int cv_folds);

    // C++: bool CvDTreeParams::use_surrogates
    private static native boolean get_use_surrogates_0(long nativeObj);

    // C++: void CvDTreeParams::use_surrogates
    private static native void set_use_surrogates_0(long nativeObj, boolean use_surrogates);

    // C++: bool CvDTreeParams::use_1se_rule
    private static native boolean get_use_1se_rule_0(long nativeObj);

    // C++: void CvDTreeParams::use_1se_rule
    private static native void set_use_1se_rule_0(long nativeObj, boolean use_1se_rule);

    // C++: bool CvDTreeParams::truncate_pruned_tree
    private static native boolean get_truncate_pruned_tree_0(long nativeObj);

    // C++: void CvDTreeParams::truncate_pruned_tree
    private static native void set_truncate_pruned_tree_0(long nativeObj, boolean truncate_pruned_tree);

    // C++: float CvDTreeParams::regression_accuracy
    private static native float get_regression_accuracy_0(long nativeObj);

    // C++: void CvDTreeParams::regression_accuracy
    private static native void set_regression_accuracy_0(long nativeObj, float regression_accuracy);

    // 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