Class: OpenCV::Cv::Ptr::Cv_HausdorffDistanceExtractor

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



76262
76263
76264
76265
# File 'lib/ropencv/ropencv_types.rb', line 76262

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)


76066
76067
76068
76069
76070
76071
76072
76073
76074
76075
76076
76077
76078
76079
76080
76081
76082
76083
76084
76085
76086
76087
76088
76089
76090
76091
76092
76093
76094
76095
76096
76097
76098
76099
76100
76101
76102
76103
76104
76105
76106
76107
76108
76109
76110
76111
76112
76113
76114
76115
76116
76117
76118
76119
76120
76121
76122
76123
76124
76125
76126
76127
76128
76129
76130
76131
76132
76133
76134
76135
76136
76137
76138
76139
76140
76141
76142
# File 'lib/ropencv/ropencv_types.rb', line 76066

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

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

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

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

    # overloaded method wrapper for cv::Ptr<cv::HausdorffDistanceExtractor>::Ptr<cv::HausdorffDistanceExtractor>(cv::Ptr<cv::ShapeDistanceExtractor> owner, cv::HausdorffDistanceExtractor* p)
    @@cv_ptr_cv_hausdorff_distance_extractor_ptr_cv_hausdorff_distance_extractor__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_hausdorff_distance_extractor_ptr_cv_hausdorff_distance_extractor__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_hausdorff_distance_extractor_ptr_cv_hausdorff_distance_extractor__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



76047
76048
76049
# File 'lib/ropencv/ropencv_types.rb', line 76047

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

Instance Method Details

#emptyBool

Note:

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

Returns:

  • (Bool)


76254
76255
76256
76257
# File 'lib/ropencv/ropencv_types.rb', line 76254

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

#getCv::HausdorffDistanceExtractor

Note:

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



76242
76243
76244
76245
76246
76247
76248
76249
76250
# File 'lib/ropencv/ropencv_types.rb', line 76242

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

methods

Returns:

  • (Void)


76219
76220
76221
76222
# File 'lib/ropencv/ropencv_types.rb', line 76219

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

#reset(p) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


76227
76228
76229
76230
# File 'lib/ropencv/ropencv_types.rb', line 76227

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

#swap(other) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


76235
76236
76237
76238
# File 'lib/ropencv/ropencv_types.rb', line 76235

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

#to_sObject

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



76208
76209
76210
# File 'lib/ropencv/ropencv_types.rb', line 76208

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