Class: OpenCV::Cv::Ptr::Cv_DescriptorMatcher
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_DescriptorMatcher
- 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::DescriptorMatcher
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_DescriptorMatcher 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
65407 65408 65409 65410 |
# File 'lib/ropencv/ropencv_types.rb', line 65407 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
65211 65212 65213 65214 65215 65216 65217 65218 65219 65220 65221 65222 65223 65224 65225 65226 65227 65228 65229 65230 65231 65232 65233 65234 65235 65236 65237 65238 65239 65240 65241 65242 65243 65244 65245 65246 65247 65248 65249 65250 65251 65252 65253 65254 65255 65256 65257 65258 65259 65260 65261 65262 65263 65264 65265 65266 65267 65268 65269 65270 65271 65272 65273 65274 65275 65276 65277 65278 65279 65280 65281 65282 65283 65284 65285 65286 65287 |
# File 'lib/ropencv/ropencv_types.rb', line 65211 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_DescriptorMatcherStruct) 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::DescriptorMatcher>::Ptr<cv::DescriptorMatcher>() @@cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_matcher_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_matcher_defaults0[i] end begin return Rbind::cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_matcher(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::DescriptorMatcher>::Ptr<cv::DescriptorMatcher>(cv::Ptr<cv::DescriptorMatcher> other) @@cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_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_descriptor_matcher_ptr_cv_descriptor_matcher__2_defaults1[i] end begin return Rbind::cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_matcher__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::DescriptorMatcher>::Ptr<cv::DescriptorMatcher>(cv::Ptr<cv::DescriptorMatcher> owner, cv::DescriptorMatcher* p) @@cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_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_descriptor_matcher_ptr_cv_descriptor_matcher__3_defaults2[i] end begin return Rbind::cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_matcher__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::DescriptorMatcher>::Ptr<cv::DescriptorMatcher>(cv::DescriptorMatcher* p) @@cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_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_descriptor_matcher_ptr_cv_descriptor_matcher__4_defaults3[i] end begin return Rbind::cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_matcher__4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::DescriptorMatcher>::Ptr<cv::DescriptorMatcher>(cv::Ptr<cv::Algorithm> owner, cv::DescriptorMatcher* p) @@cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_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_descriptor_matcher_ptr_cv_descriptor_matcher__5_defaults4[i] end begin return Rbind::cv_ptr_cv_descriptor_matcher_ptr_cv_descriptor_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
65192 65193 65194 |
# File 'lib/ropencv/ropencv_types.rb', line 65192 def self.null new(Ptr::Cv_DescriptorMatcherStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::DescriptorMatcher::empty()
65399 65400 65401 65402 |
# File 'lib/ropencv/ropencv_types.rb', line 65399 def empty() __validate_pointer__ Rbind::cv_ptr_cv_descriptor_matcher_empty( self) end |
#get ⇒ Cv::DescriptorMatcher
Note:
method wrapper for cv::DescriptorMatcher* cv::Ptrcv::DescriptorMatcher::get()
65387 65388 65389 65390 65391 65392 65393 65394 65395 |
# File 'lib/ropencv/ropencv_types.rb', line 65387 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_descriptor_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::DescriptorMatcher::release()
methods
65364 65365 65366 65367 |
# File 'lib/ropencv/ropencv_types.rb', line 65364 def release() __validate_pointer__ Rbind::cv_ptr_cv_descriptor_matcher_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::DescriptorMatcher::reset(cv::DescriptorMatcher* p)
65372 65373 65374 65375 |
# File 'lib/ropencv/ropencv_types.rb', line 65372 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_descriptor_matcher_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::DescriptorMatcher::swap(cv::Ptrcv::DescriptorMatcher other)
65380 65381 65382 65383 |
# File 'lib/ropencv/ropencv_types.rb', line 65380 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_descriptor_matcher_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_DescriptorMatcher into a string by crawling through all its attributes
65353 65354 65355 |
# File 'lib/ropencv/ropencv_types.rb', line 65353 def to_s "#<cv::Ptr<cv::DescriptorMatcher> >" end |