001// 002// This file is auto-generated. Please don't modify it! 003// 004package org.opencv.imgproc; 005 006import org.opencv.imgproc.GeneralizedHough; 007 008// C++: class GeneralizedHoughBallard 009/** 010 * finds arbitrary template in the grayscale image using Generalized Hough Transform 011 * 012 * Detects position only without translation and rotation CITE: Ballard1981 . 013 */ 014public class GeneralizedHoughBallard extends GeneralizedHough { 015 016 protected GeneralizedHoughBallard(long addr) { super(addr); } 017 018 // internal usage only 019 public static GeneralizedHoughBallard __fromPtr__(long addr) { return new GeneralizedHoughBallard(addr); } 020 021 // 022 // C++: void cv::GeneralizedHoughBallard::setLevels(int levels) 023 // 024 025 public void setLevels(int levels) { 026 setLevels_0(nativeObj, levels); 027 } 028 029 030 // 031 // C++: int cv::GeneralizedHoughBallard::getLevels() 032 // 033 034 public int getLevels() { 035 return getLevels_0(nativeObj); 036 } 037 038 039 // 040 // C++: void cv::GeneralizedHoughBallard::setVotesThreshold(int votesThreshold) 041 // 042 043 public void setVotesThreshold(int votesThreshold) { 044 setVotesThreshold_0(nativeObj, votesThreshold); 045 } 046 047 048 // 049 // C++: int cv::GeneralizedHoughBallard::getVotesThreshold() 050 // 051 052 public int getVotesThreshold() { 053 return getVotesThreshold_0(nativeObj); 054 } 055 056 057 @Override 058 protected void finalize() throws Throwable { 059 delete(nativeObj); 060 } 061 062 063 064 // C++: void cv::GeneralizedHoughBallard::setLevels(int levels) 065 private static native void setLevels_0(long nativeObj, int levels); 066 067 // C++: int cv::GeneralizedHoughBallard::getLevels() 068 private static native int getLevels_0(long nativeObj); 069 070 // C++: void cv::GeneralizedHoughBallard::setVotesThreshold(int votesThreshold) 071 private static native void setVotesThreshold_0(long nativeObj, int votesThreshold); 072 073 // C++: int cv::GeneralizedHoughBallard::getVotesThreshold() 074 private static native int getVotesThreshold_0(long nativeObj); 075 076 // native support for java finalize() 077 private static native void delete(long nativeObj); 078 079}