Class: OpenCV::Cv::Ptr::Cv_BFMatcher
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_BFMatcher
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Specializing collapse
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #empty ⇒ Bool
- #get ⇒ Cv::BFMatcher
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_BFMatcher into a string by crawling through all its attributes.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
66082 66083 66084 66085 |
# File 'lib/ropencv/ropencv_types.rb', line 66082 def method_missing(m,*args) raise "Ptr cv::Ptr is empty. Cannot call #{m} on it!" if empty get.method(m).call(*args) end |
Class Method Details
.ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object
65886 65887 65888 65889 65890 65891 65892 65893 65894 65895 65896 65897 65898 65899 65900 65901 65902 65903 65904 65905 65906 65907 65908 65909 65910 65911 65912 65913 65914 65915 65916 65917 65918 65919 65920 65921 65922 65923 65924 65925 65926 65927 65928 65929 65930 65931 65932 65933 65934 65935 65936 65937 65938 65939 65940 65941 65942 65943 65944 65945 65946 65947 65948 65949 65950 65951 65952 65953 65954 65955 65956 65957 65958 65959 65960 65961 65962 |
# File 'lib/ropencv/ropencv_types.rb', line 65886 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_BFMatcherStruct) 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::Ptr<cv::BFMatcher>::Ptr<cv::BFMatcher>() @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher_defaults0[i] end begin return Rbind::cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::BFMatcher>::Ptr<cv::BFMatcher>(cv::Ptr<cv::BFMatcher> other) @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__2_defaults1[i] end begin return Rbind::cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::BFMatcher>::Ptr<cv::BFMatcher>(cv::Ptr<cv::BFMatcher> owner, cv::BFMatcher* p) @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__3_defaults2 ||= [nil, nil] if(args.size >= 2 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__3_defaults2[i] end begin return Rbind::cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::BFMatcher>::Ptr<cv::BFMatcher>(cv::BFMatcher* p) @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__4_defaults3[i] end begin return Rbind::cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::BFMatcher>::Ptr<cv::BFMatcher>(cv::Ptr<cv::DescriptorMatcher> owner, cv::BFMatcher* p) @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__5_defaults4 ||= [nil, nil] if(args.size >= 2 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__5_defaults4[i] end begin return Rbind::cv_ptr_cv_bf_matcher_ptr_cv_bf_matcher__5(*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
65867 65868 65869 |
# File 'lib/ropencv/ropencv_types.rb', line 65867 def self.null new(Ptr::Cv_BFMatcherStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::BFMatcher::empty()
66074 66075 66076 66077 |
# File 'lib/ropencv/ropencv_types.rb', line 66074 def empty() __validate_pointer__ Rbind::cv_ptr_cv_bf_matcher_empty( self) end |
#get ⇒ Cv::BFMatcher
Note:
method wrapper for cv::BFMatcher* cv::Ptrcv::BFMatcher::get()
66062 66063 66064 66065 66066 66067 66068 66069 66070 |
# File 'lib/ropencv/ropencv_types.rb', line 66062 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_bf_matcher_get( 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 |
#release ⇒ Void
Note:
method wrapper for void cv::Ptrcv::BFMatcher::release()
methods
66039 66040 66041 66042 |
# File 'lib/ropencv/ropencv_types.rb', line 66039 def release() __validate_pointer__ Rbind::cv_ptr_cv_bf_matcher_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::BFMatcher::reset(cv::BFMatcher* p)
66047 66048 66049 66050 |
# File 'lib/ropencv/ropencv_types.rb', line 66047 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_bf_matcher_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::BFMatcher::swap(cv::Ptrcv::BFMatcher other)
66055 66056 66057 66058 |
# File 'lib/ropencv/ropencv_types.rb', line 66055 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_bf_matcher_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_BFMatcher into a string by crawling through all its attributes
66028 66029 66030 |
# File 'lib/ropencv/ropencv_types.rb', line 66028 def to_s "#<cv::Ptr<cv::BFMatcher> >" end |