GeneralizedHough.java 6.87 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.imgproc;

import org.opencv.core.Algorithm;
import org.opencv.core.Mat;
import org.opencv.core.Point;

// C++: class GeneralizedHough
/**
 * finds arbitrary template in the grayscale image using Generalized Hough Transform
 */
public class GeneralizedHough extends Algorithm {

    protected GeneralizedHough(long addr) { super(addr); }

    // internal usage only
    public static GeneralizedHough __fromPtr__(long addr) { return new GeneralizedHough(addr); }

    //
    // C++:  void cv::GeneralizedHough::setTemplate(Mat templ, Point templCenter = Point(-1, -1))
    //

    public void setTemplate(Mat templ, Point templCenter) {
        setTemplate_0(nativeObj, templ.nativeObj, templCenter.x, templCenter.y);
    }

    public void setTemplate(Mat templ) {
        setTemplate_1(nativeObj, templ.nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter = Point(-1, -1))
    //

    public void setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter) {
        setTemplate_2(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj, templCenter.x, templCenter.y);
    }

    public void setTemplate(Mat edges, Mat dx, Mat dy) {
        setTemplate_3(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::detect(Mat image, Mat& positions, Mat& votes = Mat())
    //

    public void detect(Mat image, Mat positions, Mat votes) {
        detect_0(nativeObj, image.nativeObj, positions.nativeObj, votes.nativeObj);
    }

    public void detect(Mat image, Mat positions) {
        detect_1(nativeObj, image.nativeObj, positions.nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::detect(Mat edges, Mat dx, Mat dy, Mat& positions, Mat& votes = Mat())
    //

    public void detect(Mat edges, Mat dx, Mat dy, Mat positions, Mat votes) {
        detect_2(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj, positions.nativeObj, votes.nativeObj);
    }

    public void detect(Mat edges, Mat dx, Mat dy, Mat positions) {
        detect_3(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj, positions.nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::setCannyLowThresh(int cannyLowThresh)
    //

    public void setCannyLowThresh(int cannyLowThresh) {
        setCannyLowThresh_0(nativeObj, cannyLowThresh);
    }


    //
    // C++:  int cv::GeneralizedHough::getCannyLowThresh()
    //

    public int getCannyLowThresh() {
        return getCannyLowThresh_0(nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::setCannyHighThresh(int cannyHighThresh)
    //

    public void setCannyHighThresh(int cannyHighThresh) {
        setCannyHighThresh_0(nativeObj, cannyHighThresh);
    }


    //
    // C++:  int cv::GeneralizedHough::getCannyHighThresh()
    //

    public int getCannyHighThresh() {
        return getCannyHighThresh_0(nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::setMinDist(double minDist)
    //

    public void setMinDist(double minDist) {
        setMinDist_0(nativeObj, minDist);
    }


    //
    // C++:  double cv::GeneralizedHough::getMinDist()
    //

    public double getMinDist() {
        return getMinDist_0(nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::setDp(double dp)
    //

    public void setDp(double dp) {
        setDp_0(nativeObj, dp);
    }


    //
    // C++:  double cv::GeneralizedHough::getDp()
    //

    public double getDp() {
        return getDp_0(nativeObj);
    }


    //
    // C++:  void cv::GeneralizedHough::setMaxBufferSize(int maxBufferSize)
    //

    public void setMaxBufferSize(int maxBufferSize) {
        setMaxBufferSize_0(nativeObj, maxBufferSize);
    }


    //
    // C++:  int cv::GeneralizedHough::getMaxBufferSize()
    //

    public int getMaxBufferSize() {
        return getMaxBufferSize_0(nativeObj);
    }


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



    // C++:  void cv::GeneralizedHough::setTemplate(Mat templ, Point templCenter = Point(-1, -1))
    private static native void setTemplate_0(long nativeObj, long templ_nativeObj, double templCenter_x, double templCenter_y);
    private static native void setTemplate_1(long nativeObj, long templ_nativeObj);

    // C++:  void cv::GeneralizedHough::setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter = Point(-1, -1))
    private static native void setTemplate_2(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj, double templCenter_x, double templCenter_y);
    private static native void setTemplate_3(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj);

    // C++:  void cv::GeneralizedHough::detect(Mat image, Mat& positions, Mat& votes = Mat())
    private static native void detect_0(long nativeObj, long image_nativeObj, long positions_nativeObj, long votes_nativeObj);
    private static native void detect_1(long nativeObj, long image_nativeObj, long positions_nativeObj);

    // C++:  void cv::GeneralizedHough::detect(Mat edges, Mat dx, Mat dy, Mat& positions, Mat& votes = Mat())
    private static native void detect_2(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj, long positions_nativeObj, long votes_nativeObj);
    private static native void detect_3(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj, long positions_nativeObj);

    // C++:  void cv::GeneralizedHough::setCannyLowThresh(int cannyLowThresh)
    private static native void setCannyLowThresh_0(long nativeObj, int cannyLowThresh);

    // C++:  int cv::GeneralizedHough::getCannyLowThresh()
    private static native int getCannyLowThresh_0(long nativeObj);

    // C++:  void cv::GeneralizedHough::setCannyHighThresh(int cannyHighThresh)
    private static native void setCannyHighThresh_0(long nativeObj, int cannyHighThresh);

    // C++:  int cv::GeneralizedHough::getCannyHighThresh()
    private static native int getCannyHighThresh_0(long nativeObj);

    // C++:  void cv::GeneralizedHough::setMinDist(double minDist)
    private static native void setMinDist_0(long nativeObj, double minDist);

    // C++:  double cv::GeneralizedHough::getMinDist()
    private static native double getMinDist_0(long nativeObj);

    // C++:  void cv::GeneralizedHough::setDp(double dp)
    private static native void setDp_0(long nativeObj, double dp);

    // C++:  double cv::GeneralizedHough::getDp()
    private static native double getDp_0(long nativeObj);

    // C++:  void cv::GeneralizedHough::setMaxBufferSize(int maxBufferSize)
    private static native void setMaxBufferSize_0(long nativeObj, int maxBufferSize);

    // C++:  int cv::GeneralizedHough::getMaxBufferSize()
    private static native int getMaxBufferSize_0(long nativeObj);

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

}