Class: OpenCV::Cv::GeneralizedHoughBallard
- Inherits:
-
Object
- Object
- OpenCV::Cv::GeneralizedHoughBallard
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .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)
- #cast_to_generalized_hough(parse_ownership) ⇒ Cv::GeneralizedHough (also: #castToGeneralizedHough)
- #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_levels ⇒ Fixnum (also: #getLevels)
- #get_max_buffer_size ⇒ Fixnum (also: #getMaxBufferSize)
- #get_min_dist ⇒ Double (also: #getMinDist)
- #get_votes_threshold ⇒ Fixnum (also: #getVotesThreshold)
- #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_levels(levels) ⇒ Void
(also: #setLevels)
methods.
- #set_max_buffer_size(max_buffer_size) ⇒ Void (also: #setMaxBufferSize)
- #set_min_dist(min_dist) ⇒ Void (also: #setMinDist)
- #set_template(*args) ⇒ Object
- #set_votes_threshold(votes_threshold) ⇒ Void (also: #setVotesThreshold)
-
#to_s ⇒ Object
converts GeneralizedHoughBallard into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.new(*args) ⇒ Object
34442 34443 34444 34445 34446 34447 34448 34449 |
# File 'lib/ropencv/ropencv_types.rb', line 34442 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(GeneralizedHoughBallardStruct) 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
34438 34439 34440 |
# File 'lib/ropencv/ropencv_types.rb', line 34438 def self.null new(GeneralizedHoughBallardStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::GeneralizedHoughBallard::castToAlgorithm(bool parse_ownership)
34752 34753 34754 34755 34756 34757 34758 34759 34760 |
# File 'lib/ropencv/ropencv_types.rb', line 34752 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_generalized_hough_ballard_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 |
#cast_to_generalized_hough(parse_ownership) ⇒ Cv::GeneralizedHough Also known as: castToGeneralizedHough
method wrapper for cv::GeneralizedHough* cv::GeneralizedHoughBallard::castToGeneralizedHough(bool parse_ownership)
34561 34562 34563 34564 34565 34566 34567 34568 34569 |
# File 'lib/ropencv/ropencv_types.rb', line 34561 def cast_to_generalized_hough(parse_ownership) __validate_pointer__ result = Rbind::cv_generalized_hough_ballard_cast_to_generalized_hough( 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::GeneralizedHoughBallard::clear()
34765 34766 34767 34768 |
# File 'lib/ropencv/ropencv_types.rb', line 34765 def clear() __validate_pointer__ Rbind::cv_generalized_hough_ballard_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
34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 34658 34659 34660 34661 34662 |
# File 'lib/ropencv/ropencv_types.rb', line 34631 def detect(*args) __validate_pointer__ # overloaded method wrapper for void cv::GeneralizedHoughBallard::detect(const cv::Mat image, cv::Mat& positions, const cv::Mat votes = Mat()/O) @@cv_generalized_hough_ballard_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_ballard_detect_defaults0[i] end begin return Rbind::cv_generalized_hough_ballard_detect(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::GeneralizedHoughBallard::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_ballard_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_ballard_detect__2_defaults1[i] end begin return Rbind::cv_generalized_hough_ballard_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::GeneralizedHoughBallard::empty()
34789 34790 34791 34792 |
# File 'lib/ropencv/ropencv_types.rb', line 34789 def empty() __validate_pointer__ Rbind::cv_generalized_hough_ballard_empty( self) end |
#get_canny_high_thresh ⇒ Fixnum Also known as: getCannyHighThresh
method wrapper for int cv::GeneralizedHoughBallard::getCannyHighThresh()
34692 34693 34694 34695 |
# File 'lib/ropencv/ropencv_types.rb', line 34692 def get_canny_high_thresh() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_canny_high_thresh( self) end |
#get_canny_low_thresh ⇒ Fixnum Also known as: getCannyLowThresh
method wrapper for int cv::GeneralizedHoughBallard::getCannyLowThresh()
34675 34676 34677 34678 |
# File 'lib/ropencv/ropencv_types.rb', line 34675 def get_canny_low_thresh() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_canny_low_thresh( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::GeneralizedHoughBallard::getDefaultName()
34804 34805 34806 34807 34808 34809 34810 34811 34812 |
# File 'lib/ropencv/ropencv_types.rb', line 34804 def get_default_name() __validate_pointer__ result = Rbind::cv_generalized_hough_ballard_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::GeneralizedHoughBallard::getDp()
34726 34727 34728 34729 |
# File 'lib/ropencv/ropencv_types.rb', line 34726 def get_dp() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_dp( self) end |
#get_levels ⇒ Fixnum Also known as: getLevels
method wrapper for int cv::GeneralizedHoughBallard::getLevels()
34535 34536 34537 34538 |
# File 'lib/ropencv/ropencv_types.rb', line 34535 def get_levels() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_levels( self) end |
#get_max_buffer_size ⇒ Fixnum Also known as: getMaxBufferSize
method wrapper for int cv::GeneralizedHoughBallard::getMaxBufferSize()
34743 34744 34745 34746 |
# File 'lib/ropencv/ropencv_types.rb', line 34743 def get_max_buffer_size() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_max_buffer_size( self) end |
#get_min_dist ⇒ Double Also known as: getMinDist
method wrapper for double cv::GeneralizedHoughBallard::getMinDist()
34709 34710 34711 34712 |
# File 'lib/ropencv/ropencv_types.rb', line 34709 def get_min_dist() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_min_dist( self) end |
#get_votes_threshold ⇒ Fixnum Also known as: getVotesThreshold
method wrapper for int cv::GeneralizedHoughBallard::getVotesThreshold()
34552 34553 34554 34555 |
# File 'lib/ropencv/ropencv_types.rb', line 34552 def get_votes_threshold() __validate_pointer__ Rbind::cv_generalized_hough_ballard_get_votes_threshold( self) end |
#read(fn) ⇒ Void
method wrapper for void cv::GeneralizedHoughBallard::read(const cv::FileNode fn)
34782 34783 34784 34785 |
# File 'lib/ropencv/ropencv_types.rb', line 34782 def read(fn) __validate_pointer__ Rbind::cv_generalized_hough_ballard_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::GeneralizedHoughBallard::save(const std::string filename)
34797 34798 34799 34800 |
# File 'lib/ropencv/ropencv_types.rb', line 34797 def save(filename) __validate_pointer__ Rbind::cv_generalized_hough_ballard_save( self, filename) end |
#set_canny_high_thresh(canny_high_thresh) ⇒ Void Also known as: setCannyHighThresh
method wrapper for void cv::GeneralizedHoughBallard::setCannyHighThresh(int cannyHighThresh)
34684 34685 34686 34687 |
# File 'lib/ropencv/ropencv_types.rb', line 34684 def set_canny_high_thresh(canny_high_thresh) __validate_pointer__ Rbind::cv_generalized_hough_ballard_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::GeneralizedHoughBallard::setCannyLowThresh(int cannyLowThresh)
34667 34668 34669 34670 |
# File 'lib/ropencv/ropencv_types.rb', line 34667 def set_canny_low_thresh(canny_low_thresh) __validate_pointer__ Rbind::cv_generalized_hough_ballard_set_canny_low_thresh( self, canny_low_thresh) end |
#set_dp(dp) ⇒ Void Also known as: setDp
method wrapper for void cv::GeneralizedHoughBallard::setDp(double dp)
34718 34719 34720 34721 |
# File 'lib/ropencv/ropencv_types.rb', line 34718 def set_dp(dp) __validate_pointer__ Rbind::cv_generalized_hough_ballard_set_dp( self, dp) end |
#set_levels(levels) ⇒ Void Also known as: setLevels
method wrapper for void cv::GeneralizedHoughBallard::setLevels(int levels)
methods
34527 34528 34529 34530 |
# File 'lib/ropencv/ropencv_types.rb', line 34527 def set_levels(levels) __validate_pointer__ Rbind::cv_generalized_hough_ballard_set_levels( self, levels) end |
#set_max_buffer_size(max_buffer_size) ⇒ Void Also known as: setMaxBufferSize
method wrapper for void cv::GeneralizedHoughBallard::setMaxBufferSize(int maxBufferSize)
34735 34736 34737 34738 |
# File 'lib/ropencv/ropencv_types.rb', line 34735 def set_max_buffer_size(max_buffer_size) __validate_pointer__ Rbind::cv_generalized_hough_ballard_set_max_buffer_size( self, max_buffer_size) end |
#set_min_dist(min_dist) ⇒ Void Also known as: setMinDist
method wrapper for void cv::GeneralizedHoughBallard::setMinDist(double minDist)
34701 34702 34703 34704 |
# File 'lib/ropencv/ropencv_types.rb', line 34701 def set_min_dist(min_dist) __validate_pointer__ Rbind::cv_generalized_hough_ballard_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
34584 34585 34586 34587 34588 34589 34590 34591 34592 34593 34594 34595 34596 34597 34598 34599 34600 34601 34602 34603 34604 34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 |
# File 'lib/ropencv/ropencv_types.rb', line 34584 def set_template(*args) __validate_pointer__ # overloaded method wrapper for void cv::GeneralizedHoughBallard::setTemplate(const cv::Mat templ, const cv::Point templCenter = Point(-1, -1)) @@cv_generalized_hough_ballard_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_ballard_set_template_defaults0[i] end begin return Rbind::cv_generalized_hough_ballard_set_template(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::GeneralizedHoughBallard::setTemplate(const cv::Mat edges, const cv::Mat dx, const cv::Mat dy, const cv::Point templCenter = Point(-1, -1)) @@cv_generalized_hough_ballard_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_ballard_set_template__2_defaults1[i] end begin return Rbind::cv_generalized_hough_ballard_set_template__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |
#set_votes_threshold(votes_threshold) ⇒ Void Also known as: setVotesThreshold
method wrapper for void cv::GeneralizedHoughBallard::setVotesThreshold(int votesThreshold)
34544 34545 34546 34547 |
# File 'lib/ropencv/ropencv_types.rb', line 34544 def set_votes_threshold(votes_threshold) __validate_pointer__ Rbind::cv_generalized_hough_ballard_set_votes_threshold( self, votes_threshold) end |
#to_s ⇒ Object
converts GeneralizedHoughBallard into a string by crawling through all its attributes
34515 34516 34517 |
# File 'lib/ropencv/ropencv_types.rb', line 34515 def to_s "#<cv::GeneralizedHoughBallard >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::GeneralizedHoughBallard::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
34774 34775 34776 34777 |
# File 'lib/ropencv/ropencv_types.rb', line 34774 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_generalized_hough_ballard_write( self, fs, name) end |