All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencv.imgproc.GeneralizedHough Maven / Gradle / Ivy

There is a newer version: 8.0.0
Show newest version
//
// 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);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy