001// 002// This file is auto-generated. Please don't modify it! 003// 004package org.opencv.imgproc; 005 006import org.opencv.core.Algorithm; 007import org.opencv.core.Mat; 008import org.opencv.core.Point; 009 010// C++: class GeneralizedHough 011/** 012 * finds arbitrary template in the grayscale image using Generalized Hough Transform 013 */ 014public class GeneralizedHough extends Algorithm { 015 016 protected GeneralizedHough(long addr) { super(addr); } 017 018 // internal usage only 019 public static GeneralizedHough __fromPtr__(long addr) { return new GeneralizedHough(addr); } 020 021 // 022 // C++: void cv::GeneralizedHough::setTemplate(Mat templ, Point templCenter = Point(-1, -1)) 023 // 024 025 public void setTemplate(Mat templ, Point templCenter) { 026 setTemplate_0(nativeObj, templ.nativeObj, templCenter.x, templCenter.y); 027 } 028 029 public void setTemplate(Mat templ) { 030 setTemplate_1(nativeObj, templ.nativeObj); 031 } 032 033 034 // 035 // C++: void cv::GeneralizedHough::setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter = Point(-1, -1)) 036 // 037 038 public void setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter) { 039 setTemplate_2(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj, templCenter.x, templCenter.y); 040 } 041 042 public void setTemplate(Mat edges, Mat dx, Mat dy) { 043 setTemplate_3(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj); 044 } 045 046 047 // 048 // C++: void cv::GeneralizedHough::detect(Mat image, Mat& positions, Mat& votes = Mat()) 049 // 050 051 public void detect(Mat image, Mat positions, Mat votes) { 052 detect_0(nativeObj, image.nativeObj, positions.nativeObj, votes.nativeObj); 053 } 054 055 public void detect(Mat image, Mat positions) { 056 detect_1(nativeObj, image.nativeObj, positions.nativeObj); 057 } 058 059 060 // 061 // C++: void cv::GeneralizedHough::detect(Mat edges, Mat dx, Mat dy, Mat& positions, Mat& votes = Mat()) 062 // 063 064 public void detect(Mat edges, Mat dx, Mat dy, Mat positions, Mat votes) { 065 detect_2(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj, positions.nativeObj, votes.nativeObj); 066 } 067 068 public void detect(Mat edges, Mat dx, Mat dy, Mat positions) { 069 detect_3(nativeObj, edges.nativeObj, dx.nativeObj, dy.nativeObj, positions.nativeObj); 070 } 071 072 073 // 074 // C++: void cv::GeneralizedHough::setCannyLowThresh(int cannyLowThresh) 075 // 076 077 public void setCannyLowThresh(int cannyLowThresh) { 078 setCannyLowThresh_0(nativeObj, cannyLowThresh); 079 } 080 081 082 // 083 // C++: int cv::GeneralizedHough::getCannyLowThresh() 084 // 085 086 public int getCannyLowThresh() { 087 return getCannyLowThresh_0(nativeObj); 088 } 089 090 091 // 092 // C++: void cv::GeneralizedHough::setCannyHighThresh(int cannyHighThresh) 093 // 094 095 public void setCannyHighThresh(int cannyHighThresh) { 096 setCannyHighThresh_0(nativeObj, cannyHighThresh); 097 } 098 099 100 // 101 // C++: int cv::GeneralizedHough::getCannyHighThresh() 102 // 103 104 public int getCannyHighThresh() { 105 return getCannyHighThresh_0(nativeObj); 106 } 107 108 109 // 110 // C++: void cv::GeneralizedHough::setMinDist(double minDist) 111 // 112 113 public void setMinDist(double minDist) { 114 setMinDist_0(nativeObj, minDist); 115 } 116 117 118 // 119 // C++: double cv::GeneralizedHough::getMinDist() 120 // 121 122 public double getMinDist() { 123 return getMinDist_0(nativeObj); 124 } 125 126 127 // 128 // C++: void cv::GeneralizedHough::setDp(double dp) 129 // 130 131 public void setDp(double dp) { 132 setDp_0(nativeObj, dp); 133 } 134 135 136 // 137 // C++: double cv::GeneralizedHough::getDp() 138 // 139 140 public double getDp() { 141 return getDp_0(nativeObj); 142 } 143 144 145 // 146 // C++: void cv::GeneralizedHough::setMaxBufferSize(int maxBufferSize) 147 // 148 149 public void setMaxBufferSize(int maxBufferSize) { 150 setMaxBufferSize_0(nativeObj, maxBufferSize); 151 } 152 153 154 // 155 // C++: int cv::GeneralizedHough::getMaxBufferSize() 156 // 157 158 public int getMaxBufferSize() { 159 return getMaxBufferSize_0(nativeObj); 160 } 161 162 163 @Override 164 protected void finalize() throws Throwable { 165 delete(nativeObj); 166 } 167 168 169 170 // C++: void cv::GeneralizedHough::setTemplate(Mat templ, Point templCenter = Point(-1, -1)) 171 private static native void setTemplate_0(long nativeObj, long templ_nativeObj, double templCenter_x, double templCenter_y); 172 private static native void setTemplate_1(long nativeObj, long templ_nativeObj); 173 174 // C++: void cv::GeneralizedHough::setTemplate(Mat edges, Mat dx, Mat dy, Point templCenter = Point(-1, -1)) 175 private static native void setTemplate_2(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj, double templCenter_x, double templCenter_y); 176 private static native void setTemplate_3(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj); 177 178 // C++: void cv::GeneralizedHough::detect(Mat image, Mat& positions, Mat& votes = Mat()) 179 private static native void detect_0(long nativeObj, long image_nativeObj, long positions_nativeObj, long votes_nativeObj); 180 private static native void detect_1(long nativeObj, long image_nativeObj, long positions_nativeObj); 181 182 // C++: void cv::GeneralizedHough::detect(Mat edges, Mat dx, Mat dy, Mat& positions, Mat& votes = Mat()) 183 private static native void detect_2(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj, long positions_nativeObj, long votes_nativeObj); 184 private static native void detect_3(long nativeObj, long edges_nativeObj, long dx_nativeObj, long dy_nativeObj, long positions_nativeObj); 185 186 // C++: void cv::GeneralizedHough::setCannyLowThresh(int cannyLowThresh) 187 private static native void setCannyLowThresh_0(long nativeObj, int cannyLowThresh); 188 189 // C++: int cv::GeneralizedHough::getCannyLowThresh() 190 private static native int getCannyLowThresh_0(long nativeObj); 191 192 // C++: void cv::GeneralizedHough::setCannyHighThresh(int cannyHighThresh) 193 private static native void setCannyHighThresh_0(long nativeObj, int cannyHighThresh); 194 195 // C++: int cv::GeneralizedHough::getCannyHighThresh() 196 private static native int getCannyHighThresh_0(long nativeObj); 197 198 // C++: void cv::GeneralizedHough::setMinDist(double minDist) 199 private static native void setMinDist_0(long nativeObj, double minDist); 200 201 // C++: double cv::GeneralizedHough::getMinDist() 202 private static native double getMinDist_0(long nativeObj); 203 204 // C++: void cv::GeneralizedHough::setDp(double dp) 205 private static native void setDp_0(long nativeObj, double dp); 206 207 // C++: double cv::GeneralizedHough::getDp() 208 private static native double getDp_0(long nativeObj); 209 210 // C++: void cv::GeneralizedHough::setMaxBufferSize(int maxBufferSize) 211 private static native void setMaxBufferSize_0(long nativeObj, int maxBufferSize); 212 213 // C++: int cv::GeneralizedHough::getMaxBufferSize() 214 private static native int getMaxBufferSize_0(long nativeObj); 215 216 // native support for java finalize() 217 private static native void delete(long nativeObj); 218 219}