Class: OpenCV::Cv::Ptr::Cv_AffineFeature

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



56674
56675
56676
56677
# File 'lib/ropencv/ropencv_types.rb', line 56674

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)


56478
56479
56480
56481
56482
56483
56484
56485
56486
56487
56488
56489
56490
56491
56492
56493
56494
56495
56496
56497
56498
56499
56500
56501
56502
56503
56504
56505
56506
56507
56508
56509
56510
56511
56512
56513
56514
56515
56516
56517
56518
56519
56520
56521
56522
56523
56524
56525
56526
56527
56528
56529
56530
56531
56532
56533
56534
56535
56536
56537
56538
56539
56540
56541
56542
56543
56544
56545
56546
56547
56548
56549
56550
56551
56552
56553
56554
# File 'lib/ropencv/ropencv_types.rb', line 56478

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

    # overloaded method wrapper for cv::Ptr<cv::AffineFeature>::Ptr<cv::AffineFeature>(cv::Ptr<cv::AffineFeature> other)
    @@cv_ptr_cv_affine_feature_ptr_cv_affine_feature__2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_affine_feature_ptr_cv_affine_feature__2_defaults1[i]
        end
        begin
                return Rbind::cv_ptr_cv_affine_feature_ptr_cv_affine_feature__2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

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

    # overloaded method wrapper for cv::Ptr<cv::AffineFeature>::Ptr<cv::AffineFeature>(cv::AffineFeature* p)
    @@cv_ptr_cv_affine_feature_ptr_cv_affine_feature__4_defaults3 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_affine_feature_ptr_cv_affine_feature__4_defaults3[i]
        end
        begin
                return Rbind::cv_ptr_cv_affine_feature_ptr_cv_affine_feature__4(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::AffineFeature>::Ptr<cv::AffineFeature>(cv::Ptr<cv::Feature2D> owner, cv::AffineFeature* p)
    @@cv_ptr_cv_affine_feature_ptr_cv_affine_feature__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_affine_feature_ptr_cv_affine_feature__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_affine_feature_ptr_cv_affine_feature__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



56459
56460
56461
# File 'lib/ropencv/ropencv_types.rb', line 56459

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

Instance Method Details

#emptyBool

Note:

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

Returns:

  • (Bool)


56666
56667
56668
56669
# File 'lib/ropencv/ropencv_types.rb', line 56666

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

#getCv::AffineFeature

Note:

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

Returns:



56654
56655
56656
56657
56658
56659
56660
56661
56662
# File 'lib/ropencv/ropencv_types.rb', line 56654

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

methods

Returns:

  • (Void)


56631
56632
56633
56634
# File 'lib/ropencv/ropencv_types.rb', line 56631

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

#reset(p) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


56639
56640
56641
56642
# File 'lib/ropencv/ropencv_types.rb', line 56639

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

#swap(other) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


56647
56648
56649
56650
# File 'lib/ropencv/ropencv_types.rb', line 56647

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

#to_sObject

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



56620
56621
56622
# File 'lib/ropencv/ropencv_types.rb', line 56620

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