Class: OpenCV::Cv::GeneralizedHough
- Inherits:
-
Object
- Object
- OpenCV::Cv::GeneralizedHough
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::GeneralizedHough (also: castFromAlgorithm)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #clear ⇒ Void
- #detect(*args) ⇒ Object
- #empty ⇒ Bool
- #get_canny_high_thresh ⇒ Fixnum (also: #getCannyHighThresh)
- #get_canny_low_thresh ⇒ Fixnum (also: #getCannyLowThresh)
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_dp ⇒ Double (also: #getDp)
- #get_max_buffer_size ⇒ Fixnum (also: #getMaxBufferSize)
- #get_min_dist ⇒ Double (also: #getMinDist)
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_canny_high_thresh(canny_high_thresh) ⇒ Void (also: #setCannyHighThresh)
- #set_canny_low_thresh(canny_low_thresh) ⇒ Void (also: #setCannyLowThresh)
- #set_dp(dp) ⇒ Void (also: #setDp)
- #set_max_buffer_size(max_buffer_size) ⇒ Void (also: #setMaxBufferSize)
- #set_min_dist(min_dist) ⇒ Void (also: #setMinDist)
-
#set_template(*args) ⇒ Object
methods.
-
#to_s ⇒ Object
converts GeneralizedHough into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::GeneralizedHough Also known as: castFromAlgorithm
wrapper for static method cv::GeneralizedHough* cv::GeneralizedHough::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)
34339 34340 34341 |
# File 'lib/ropencv/ropencv_types.rb', line 34339 def self.cast_from_algorithm(ptr, parse_ownership) Rbind::cv_generalized_hough_cast_from_algorithm(ptr, parse_ownership) end |
.new(*args) ⇒ Object
34062 34063 34064 34065 34066 34067 34068 34069 |
# File 'lib/ropencv/ropencv_types.rb', line 34062 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(GeneralizedHoughStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
34058 34059 34060 |
# File 'lib/ropencv/ropencv_types.rb', line 34058 def self.null new(GeneralizedHoughStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::GeneralizedHough::castToAlgorithm(bool parse_ownership)
34324 34325 34326 34327 34328 34329 34330 34331 34332 |
# File 'lib/ropencv/ropencv_types.rb', line 34324 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_generalized_hough_cast_to_algorithm( self, parse_ownership) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#clear ⇒ Void
method wrapper for void cv::GeneralizedHough::clear()
34346 34347 34348 34349 |
# File 'lib/ropencv/ropencv_types.rb', line 34346 def clear() __validate_pointer__ Rbind::cv_generalized_hough_clear( self) end |
#detect(image, positions, votes = Cv::Mat.new()) ⇒ Void #detect(edges, dx, dy, positions, votes = Cv::Mat.new()) ⇒ Void
wrapper for overloaded method detect
34203 34204 34205 34206 34207 34208 34209 34210 34211 34212 34213 34214 34215 34216 34217 34218 34219 34220 34221 34222 34223 34224 34225 34226 34227 34228 34229 34230 34231 34232 34233 34234 |
# File 'lib/ropencv/ropencv_types.rb', line 34203 def detect(*args) __validate_pointer__ # overloaded method wrapper for void cv::GeneralizedHough::detect(const cv::Mat image, cv::Mat& positions, const cv::Mat votes = Mat()/O) @@cv_generalized_hough_detect_defaults0 ||= [nil, nil, Cv::Mat.new()] if(args.size >= 2 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_generalized_hough_detect_defaults0[i] end begin return Rbind::cv_generalized_hough_detect(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::GeneralizedHough::detect(const cv::Mat edges, const cv::Mat dx, const cv::Mat dy, cv::Mat& positions, const cv::Mat votes = Mat()/O) @@cv_generalized_hough_detect__2_defaults1 ||= [nil, nil, nil, nil, Cv::Mat.new()] if(args.size >= 4 && args.size <= 5) targs = args.clone targs.size.upto(4) do |i| targs[i] = @@cv_generalized_hough_detect__2_defaults1[i] end begin return Rbind::cv_generalized_hough_detect__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |
#empty ⇒ Bool
method wrapper for bool cv::GeneralizedHough::empty()
34370 34371 34372 34373 |
# File 'lib/ropencv/ropencv_types.rb', line 34370 def empty() __validate_pointer__ Rbind::cv_generalized_hough_empty( self) end |
#get_canny_high_thresh ⇒ Fixnum Also known as: getCannyHighThresh
method wrapper for int cv::GeneralizedHough::getCannyHighThresh()
34264 34265 34266 34267 |
# File 'lib/ropencv/ropencv_types.rb', line 34264 def get_canny_high_thresh() __validate_pointer__ Rbind::cv_generalized_hough_get_canny_high_thresh( self) end |
#get_canny_low_thresh ⇒ Fixnum Also known as: getCannyLowThresh
method wrapper for int cv::GeneralizedHough::getCannyLowThresh()
34247 34248 34249 34250 |
# File 'lib/ropencv/ropencv_types.rb', line 34247 def get_canny_low_thresh() __validate_pointer__ Rbind::cv_generalized_hough_get_canny_low_thresh( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::GeneralizedHough::getDefaultName()
34385 34386 34387 34388 34389 34390 34391 34392 34393 |
# File 'lib/ropencv/ropencv_types.rb', line 34385 def get_default_name() __validate_pointer__ result = Rbind::cv_generalized_hough_get_default_name( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#get_dp ⇒ Double Also known as: getDp
method wrapper for double cv::GeneralizedHough::getDp()
34298 34299 34300 34301 |
# File 'lib/ropencv/ropencv_types.rb', line 34298 def get_dp() __validate_pointer__ Rbind::cv_generalized_hough_get_dp( self) end |
#get_max_buffer_size ⇒ Fixnum Also known as: getMaxBufferSize
method wrapper for int cv::GeneralizedHough::getMaxBufferSize()
34315 34316 34317 34318 |
# File 'lib/ropencv/ropencv_types.rb', line 34315 def get_max_buffer_size() __validate_pointer__ Rbind::cv_generalized_hough_get_max_buffer_size( self) end |
#get_min_dist ⇒ Double Also known as: getMinDist
method wrapper for double cv::GeneralizedHough::getMinDist()
34281 34282 34283 34284 |
# File 'lib/ropencv/ropencv_types.rb', line 34281 def get_min_dist() __validate_pointer__ Rbind::cv_generalized_hough_get_min_dist( self) end |
#read(fn) ⇒ Void
method wrapper for void cv::GeneralizedHough::read(const cv::FileNode fn)
34363 34364 34365 34366 |
# File 'lib/ropencv/ropencv_types.rb', line 34363 def read(fn) __validate_pointer__ Rbind::cv_generalized_hough_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::GeneralizedHough::save(const std::string filename)
34378 34379 34380 34381 |
# File 'lib/ropencv/ropencv_types.rb', line 34378 def save(filename) __validate_pointer__ Rbind::cv_generalized_hough_save( self, filename) end |
#set_canny_high_thresh(canny_high_thresh) ⇒ Void Also known as: setCannyHighThresh
method wrapper for void cv::GeneralizedHough::setCannyHighThresh(int cannyHighThresh)
34256 34257 34258 34259 |
# File 'lib/ropencv/ropencv_types.rb', line 34256 def set_canny_high_thresh(canny_high_thresh) __validate_pointer__ Rbind::cv_generalized_hough_set_canny_high_thresh( self, canny_high_thresh) end |
#set_canny_low_thresh(canny_low_thresh) ⇒ Void Also known as: setCannyLowThresh
method wrapper for void cv::GeneralizedHough::setCannyLowThresh(int cannyLowThresh)
34239 34240 34241 34242 |
# File 'lib/ropencv/ropencv_types.rb', line 34239 def set_canny_low_thresh(canny_low_thresh) __validate_pointer__ Rbind::cv_generalized_hough_set_canny_low_thresh( self, canny_low_thresh) end |
#set_dp(dp) ⇒ Void Also known as: setDp
method wrapper for void cv::GeneralizedHough::setDp(double dp)
34290 34291 34292 34293 |
# File 'lib/ropencv/ropencv_types.rb', line 34290 def set_dp(dp) __validate_pointer__ Rbind::cv_generalized_hough_set_dp( self, dp) end |
#set_max_buffer_size(max_buffer_size) ⇒ Void Also known as: setMaxBufferSize
method wrapper for void cv::GeneralizedHough::setMaxBufferSize(int maxBufferSize)
34307 34308 34309 34310 |
# File 'lib/ropencv/ropencv_types.rb', line 34307 def set_max_buffer_size(max_buffer_size) __validate_pointer__ Rbind::cv_generalized_hough_set_max_buffer_size( self, max_buffer_size) end |
#set_min_dist(min_dist) ⇒ Void Also known as: setMinDist
method wrapper for void cv::GeneralizedHough::setMinDist(double minDist)
34273 34274 34275 34276 |
# File 'lib/ropencv/ropencv_types.rb', line 34273 def set_min_dist(min_dist) __validate_pointer__ Rbind::cv_generalized_hough_set_min_dist( self, min_dist) end |
#set_template(templ, templ_center = Cv::Point.new(-1, -1)) ⇒ Void #set_template(edges, dx, dy, templ_center = Cv::Point.new(-1, -1)) ⇒ Void
wrapper for overloaded method set_template
methods
34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 34177 34178 34179 34180 34181 34182 34183 34184 34185 34186 34187 |
# File 'lib/ropencv/ropencv_types.rb', line 34156 def set_template(*args) __validate_pointer__ # overloaded method wrapper for void cv::GeneralizedHough::setTemplate(const cv::Mat templ, const cv::Point templCenter = Point(-1, -1)) @@cv_generalized_hough_set_template_defaults0 ||= [nil, Cv::Point.new(-1, -1)] if(args.size >= 1 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_generalized_hough_set_template_defaults0[i] end begin return Rbind::cv_generalized_hough_set_template(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::GeneralizedHough::setTemplate(const cv::Mat edges, const cv::Mat dx, const cv::Mat dy, const cv::Point templCenter = Point(-1, -1)) @@cv_generalized_hough_set_template__2_defaults1 ||= [nil, nil, nil, Cv::Point.new(-1, -1)] if(args.size >= 3 && args.size <= 4) targs = args.clone targs.size.upto(3) do |i| targs[i] = @@cv_generalized_hough_set_template__2_defaults1[i] end begin return Rbind::cv_generalized_hough_set_template__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |
#to_s ⇒ Object
converts GeneralizedHough into a string by crawling through all its attributes
34135 34136 34137 |
# File 'lib/ropencv/ropencv_types.rb', line 34135 def to_s "#<cv::GeneralizedHough >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::GeneralizedHough::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
34355 34356 34357 34358 |
# File 'lib/ropencv/ropencv_types.rb', line 34355 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_generalized_hough_write( self, fs, name) end |