Class: OpenCV::Cv::Ptr::Cv_VariationalRefinement
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_VariationalRefinement
- 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::VariationalRefinement
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_VariationalRefinement 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
42644 42645 42646 42647 |
# File 'lib/ropencv/ropencv_types.rb', line 42644 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
42448 42449 42450 42451 42452 42453 42454 42455 42456 42457 42458 42459 42460 42461 42462 42463 42464 42465 42466 42467 42468 42469 42470 42471 42472 42473 42474 42475 42476 42477 42478 42479 42480 42481 42482 42483 42484 42485 42486 42487 42488 42489 42490 42491 42492 42493 42494 42495 42496 42497 42498 42499 42500 42501 42502 42503 42504 42505 42506 42507 42508 42509 42510 42511 42512 42513 42514 42515 42516 42517 42518 42519 42520 42521 42522 42523 42524 |
# File 'lib/ropencv/ropencv_types.rb', line 42448 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_VariationalRefinementStruct) 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::VariationalRefinement>::Ptr<cv::VariationalRefinement>() @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement_defaults0[i] end begin return Rbind::cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::VariationalRefinement>::Ptr<cv::VariationalRefinement>(cv::Ptr<cv::VariationalRefinement> other) @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__2_defaults1[i] end begin return Rbind::cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::VariationalRefinement>::Ptr<cv::VariationalRefinement>(cv::Ptr<cv::VariationalRefinement> owner, cv::VariationalRefinement* p) @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__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_variational_refinement_ptr_cv_variational_refinement__3_defaults2[i] end begin return Rbind::cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::VariationalRefinement>::Ptr<cv::VariationalRefinement>(cv::VariationalRefinement* p) @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__4_defaults3[i] end begin return Rbind::cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::VariationalRefinement>::Ptr<cv::VariationalRefinement>(cv::Ptr<cv::DenseOpticalFlow> owner, cv::VariationalRefinement* p) @@cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__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_variational_refinement_ptr_cv_variational_refinement__5_defaults4[i] end begin return Rbind::cv_ptr_cv_variational_refinement_ptr_cv_variational_refinement__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
42429 42430 42431 |
# File 'lib/ropencv/ropencv_types.rb', line 42429 def self.null new(Ptr::Cv_VariationalRefinementStruct.new) end |
Instance Method Details
#empty ⇒ Bool
method wrapper for bool cv::Ptrcv::VariationalRefinement::empty()
42636 42637 42638 42639 |
# File 'lib/ropencv/ropencv_types.rb', line 42636 def empty() __validate_pointer__ Rbind::cv_ptr_cv_variational_refinement_empty( self) end |
#get ⇒ Cv::VariationalRefinement
method wrapper for cv::VariationalRefinement* cv::Ptrcv::VariationalRefinement::get()
42624 42625 42626 42627 42628 42629 42630 42631 42632 |
# File 'lib/ropencv/ropencv_types.rb', line 42624 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_variational_refinement_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
method wrapper for void cv::Ptrcv::VariationalRefinement::release()
methods
42601 42602 42603 42604 |
# File 'lib/ropencv/ropencv_types.rb', line 42601 def release() __validate_pointer__ Rbind::cv_ptr_cv_variational_refinement_release( self) end |
#reset(p) ⇒ Void
method wrapper for void cv::Ptrcv::VariationalRefinement::reset(cv::VariationalRefinement* p)
42609 42610 42611 42612 |
# File 'lib/ropencv/ropencv_types.rb', line 42609 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_variational_refinement_reset( self, p) end |
#swap(other) ⇒ Void
method wrapper for void cv::Ptrcv::VariationalRefinement::swap(cv::Ptrcv::VariationalRefinement other)
42617 42618 42619 42620 |
# File 'lib/ropencv/ropencv_types.rb', line 42617 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_variational_refinement_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_VariationalRefinement into a string by crawling through all its attributes
42590 42591 42592 |
# File 'lib/ropencv/ropencv_types.rb', line 42590 def to_s "#<cv::Ptr<cv::VariationalRefinement> >" end |