Class: OpenCV::Cv::Ptr::Cv_StereoMatcher

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Specializing collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



69659
69660
69661
69662
# File 'lib/ropencv/ropencv_types.rb', line 69659

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

.ptrObject .ptrObject .ptrObject .ptrObject .ptrObject

Overloads:

Raises:

  • (ArgumentError)


69463
69464
69465
69466
69467
69468
69469
69470
69471
69472
69473
69474
69475
69476
69477
69478
69479
69480
69481
69482
69483
69484
69485
69486
69487
69488
69489
69490
69491
69492
69493
69494
69495
69496
69497
69498
69499
69500
69501
69502
69503
69504
69505
69506
69507
69508
69509
69510
69511
69512
69513
69514
69515
69516
69517
69518
69519
69520
69521
69522
69523
69524
69525
69526
69527
69528
69529
69530
69531
69532
69533
69534
69535
69536
69537
69538
69539
# File 'lib/ropencv/ropencv_types.rb', line 69463

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_StereoMatcherStruct)
        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::StereoMatcher>::Ptr<cv::StereoMatcher>()
    @@cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher_defaults0[i]
        end
        begin
                return Rbind::cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::StereoMatcher>::Ptr<cv::StereoMatcher>(cv::Ptr<cv::StereoMatcher> other)
    @@cv_ptr_cv_stereo_matcher_ptr_cv_stereo_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_stereo_matcher_ptr_cv_stereo_matcher__2_defaults1[i]
        end
        begin
                return Rbind::cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher__2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::StereoMatcher>::Ptr<cv::StereoMatcher>(cv::Ptr<cv::StereoMatcher> owner, cv::StereoMatcher* p)
    @@cv_ptr_cv_stereo_matcher_ptr_cv_stereo_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_stereo_matcher_ptr_cv_stereo_matcher__3_defaults2[i]
        end
        begin
                return Rbind::cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher__3(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::StereoMatcher>::Ptr<cv::StereoMatcher>(cv::StereoMatcher* p)
    @@cv_ptr_cv_stereo_matcher_ptr_cv_stereo_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_stereo_matcher_ptr_cv_stereo_matcher__4_defaults3[i]
        end
        begin
                return Rbind::cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher__4(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::StereoMatcher>::Ptr<cv::StereoMatcher>(cv::Ptr<cv::Algorithm> owner, cv::StereoMatcher* p)
    @@cv_ptr_cv_stereo_matcher_ptr_cv_stereo_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_stereo_matcher_ptr_cv_stereo_matcher__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_stereo_matcher_ptr_cv_stereo_matcher__5(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



69444
69445
69446
# File 'lib/ropencv/ropencv_types.rb', line 69444

def self.null
    new(Ptr::Cv_StereoMatcherStruct.new)
end

Instance Method Details

#emptyBool

Note:

method wrapper for bool cv::Ptrcv::StereoMatcher::empty()

Returns:

  • (Bool)


69651
69652
69653
69654
# File 'lib/ropencv/ropencv_types.rb', line 69651

def empty()
    __validate_pointer__
    Rbind::cv_ptr_cv_stereo_matcher_empty( self)
end

#getCv::StereoMatcher

Note:

method wrapper for cv::StereoMatcher* cv::Ptrcv::StereoMatcher::get()

Returns:



69639
69640
69641
69642
69643
69644
69645
69646
69647
# File 'lib/ropencv/ropencv_types.rb', line 69639

def get()
    __validate_pointer__
    result = Rbind::cv_ptr_cv_stereo_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

#releaseVoid

Note:

method wrapper for void cv::Ptrcv::StereoMatcher::release()

methods

Returns:

  • (Void)


69616
69617
69618
69619
# File 'lib/ropencv/ropencv_types.rb', line 69616

def release()
    __validate_pointer__
    Rbind::cv_ptr_cv_stereo_matcher_release( self)
end

#reset(p) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::StereoMatcher::reset(cv::StereoMatcher* p)

Parameters:

Returns:

  • (Void)


69624
69625
69626
69627
# File 'lib/ropencv/ropencv_types.rb', line 69624

def reset(p)
    __validate_pointer__
    Rbind::cv_ptr_cv_stereo_matcher_reset( self, p)
end

#swap(other) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::StereoMatcher::swap(cv::Ptrcv::StereoMatcher other)

Parameters:

Returns:

  • (Void)


69632
69633
69634
69635
# File 'lib/ropencv/ropencv_types.rb', line 69632

def swap(other)
    __validate_pointer__
    Rbind::cv_ptr_cv_stereo_matcher_swap( self, other)
end

#to_sObject

converts Ptr::Cv_StereoMatcher into a string by crawling through all its attributes



69605
69606
69607
# File 'lib/ropencv/ropencv_types.rb', line 69605

def to_s
    "#<cv::Ptr<cv::StereoMatcher> >"
end