Class: OpenCV::Cv::Ptr::Cv_AKAZE
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_AKAZE
- 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::AKAZE
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_AKAZE 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
64709 64710 64711 64712 |
# File 'lib/ropencv/ropencv_types.rb', line 64709 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
64513 64514 64515 64516 64517 64518 64519 64520 64521 64522 64523 64524 64525 64526 64527 64528 64529 64530 64531 64532 64533 64534 64535 64536 64537 64538 64539 64540 64541 64542 64543 64544 64545 64546 64547 64548 64549 64550 64551 64552 64553 64554 64555 64556 64557 64558 64559 64560 64561 64562 64563 64564 64565 64566 64567 64568 64569 64570 64571 64572 64573 64574 64575 64576 64577 64578 64579 64580 64581 64582 64583 64584 64585 64586 64587 64588 64589 |
# File 'lib/ropencv/ropencv_types.rb', line 64513 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_AKAZEStruct) 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::AKAZE>::Ptr<cv::AKAZE>() @@cv_ptr_cv_akaze_ptr_cv_akaze_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_akaze_ptr_cv_akaze_defaults0[i] end begin return Rbind::cv_ptr_cv_akaze_ptr_cv_akaze(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AKAZE>::Ptr<cv::AKAZE>(cv::Ptr<cv::AKAZE> other) @@cv_ptr_cv_akaze_ptr_cv_akaze_2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_akaze_ptr_cv_akaze_2_defaults1[i] end begin return Rbind::cv_ptr_cv_akaze_ptr_cv_akaze_2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AKAZE>::Ptr<cv::AKAZE>(cv::Ptr<cv::AKAZE> owner, cv::AKAZE* p) @@cv_ptr_cv_akaze_ptr_cv_akaze_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_akaze_ptr_cv_akaze_3_defaults2[i] end begin return Rbind::cv_ptr_cv_akaze_ptr_cv_akaze_3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AKAZE>::Ptr<cv::AKAZE>(cv::AKAZE* p) @@cv_ptr_cv_akaze_ptr_cv_akaze_4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_akaze_ptr_cv_akaze_4_defaults3[i] end begin return Rbind::cv_ptr_cv_akaze_ptr_cv_akaze_4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::AKAZE>::Ptr<cv::AKAZE>(cv::Ptr<cv::Feature2D> owner, cv::AKAZE* p) @@cv_ptr_cv_akaze_ptr_cv_akaze_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_akaze_ptr_cv_akaze_5_defaults4[i] end begin return Rbind::cv_ptr_cv_akaze_ptr_cv_akaze_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
64494 64495 64496 |
# File 'lib/ropencv/ropencv_types.rb', line 64494 def self.null new(Ptr::Cv_AKAZEStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::AKAZE::empty()
64701 64702 64703 64704 |
# File 'lib/ropencv/ropencv_types.rb', line 64701 def empty() __validate_pointer__ Rbind::cv_ptr_cv_akaze_empty( self) end |
#get ⇒ Cv::AKAZE
Note:
method wrapper for cv::AKAZE* cv::Ptrcv::AKAZE::get()
64689 64690 64691 64692 64693 64694 64695 64696 64697 |
# File 'lib/ropencv/ropencv_types.rb', line 64689 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_akaze_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::AKAZE::release()
methods
64666 64667 64668 64669 |
# File 'lib/ropencv/ropencv_types.rb', line 64666 def release() __validate_pointer__ Rbind::cv_ptr_cv_akaze_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::AKAZE::reset(cv::AKAZE* p)
64674 64675 64676 64677 |
# File 'lib/ropencv/ropencv_types.rb', line 64674 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_akaze_reset( self, p) end |
#swap(other) ⇒ Void
64682 64683 64684 64685 |
# File 'lib/ropencv/ropencv_types.rb', line 64682 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_akaze_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_AKAZE into a string by crawling through all its attributes
64655 64656 64657 |
# File 'lib/ropencv/ropencv_types.rb', line 64655 def to_s "#<cv::Ptr<cv::AKAZE> >" end |