Class: OpenCV::Cv::TermCriteria
- Inherits:
-
Object
- Object
- OpenCV::Cv::TermCriteria
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Constants collapse
- COUNT =
1
- MAX_ITER =
1
- EPS =
2
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#to_s ⇒ Object
converts TermCriteria into a string by crawling through all its attributes.
Class Method Details
.term_criteria(type, max_count, epsilon) ⇒ Object .term_criteria(type, max_count, epsilon) ⇒ Object
20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 |
# File 'lib/ropencv/ropencv_types.rb', line 20673 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TermCriteriaStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end # overloaded method wrapper for cv::TermCriteria::TermCriteria(int type, int maxCount, double epsilon) @@cv_term_criteria_term_criteria_defaults0 ||= [nil, nil, nil] if(args.size >= 3 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_term_criteria_term_criteria_defaults0[i] end begin return Rbind::cv_term_criteria_term_criteria(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::TermCriteria::TermCriteria(int type, int maxCount, double epsilon) @@cv_term_criteria_term_criteria__2_defaults1 ||= [nil, nil, nil] if(args.size >= 3 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_term_criteria_term_criteria__2_defaults1[i] end begin return Rbind::cv_term_criteria_term_criteria__2(*targs) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
20660 20661 20662 |
# File 'lib/ropencv/ropencv_types.rb', line 20660 def self.null new(TermCriteriaStruct.new) end |
Instance Method Details
#to_s ⇒ Object
converts TermCriteria into a string by crawling through all its attributes
20773 20774 20775 |
# File 'lib/ropencv/ropencv_types.rb', line 20773 def to_s "#<cv::TermCriteria >" end |