Class: OpenCV::Cv::DescriptorMatcher

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

._create(name) ⇒ Cv::Ptr::Cv_Algorithm

Note:

wrapper for static method cv::Ptrcv::Algorithm cv::DescriptorMatcher::_create(const cv::String name)

Parameters:

Returns:



25593
25594
25595
# File 'lib/ropencv/ropencv_types.rb', line 25593

def self._create(name)
    Rbind::cv_descriptor_matcher__create(name)
end

.cast_from_algorithm(ptr) ⇒ Cv::DescriptorMatcher Also known as: castFromAlgorithm

Note:

wrapper for static method cv::DescriptorMatcher* cv::DescriptorMatcher::castFromAlgorithm(cv::Algorithm* ptr)

Parameters:

Returns:



25392
25393
25394
# File 'lib/ropencv/ropencv_types.rb', line 25392

def self.cast_from_algorithm(ptr)
    Rbind::cv_descriptor_matcher_cast_from_algorithm(ptr)
end

.create(descriptor_matcher_type) ⇒ Cv::Ptr::Cv_DescriptorMatcher

Note:

wrapper for static method cv::Ptrcv::DescriptorMatcher cv::DescriptorMatcher::create(const cv::String descriptorMatcherType)

Parameters:

Returns:



25358
25359
25360
# File 'lib/ropencv/ropencv_types.rb', line 25358

def self.create(descriptor_matcher_type)
    Rbind::cv_descriptor_matcher_create(descriptor_matcher_type)
end

.get_list(algorithms) ⇒ Void Also known as: getList

Note:

wrapper for static method void cv::DescriptorMatcher::getList(std::vectorcv::String& algorithms)

Parameters:

Returns:

  • (Void)


25585
25586
25587
# File 'lib/ropencv/ropencv_types.rb', line 25585

def self.get_list(algorithms)
    Rbind::cv_descriptor_matcher_get_list(algorithms)
end

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


25135
25136
25137
25138
25139
25140
25141
25142
# File 'lib/ropencv/ropencv_types.rb', line 25135

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(DescriptorMatcherStruct)
        raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1
        return super(args.first)
    end

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

.nullObject

returns a null pointer to the object



25131
25132
25133
# File 'lib/ropencv/ropencv_types.rb', line 25131

def self.null
    new(DescriptorMatcherStruct.new)
end

Instance Method Details

#add(descriptors) ⇒ Void

Note:

method wrapper for void cv::DescriptorMatcher::add(const std::vectorcv::Mat descriptors)

methods

Parameters:

Returns:

  • (Void)


25220
25221
25222
25223
# File 'lib/ropencv/ropencv_types.rb', line 25220

def add(descriptors)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_add( self, descriptors)
end

#cast_to_algorithmCv::Algorithm Also known as: castToAlgorithm

Note:

method wrapper for cv::Algorithm* cv::DescriptorMatcher::castToAlgorithm()

Returns:



25378
25379
25380
25381
25382
25383
25384
25385
25386
# File 'lib/ropencv/ropencv_types.rb', line 25378

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

#clearVoid

Note:

method wrapper for void cv::DescriptorMatcher::clear()

Returns:

  • (Void)


25240
25241
25242
25243
# File 'lib/ropencv/ropencv_types.rb', line 25240

def clear()
    __validate_pointer__
    Rbind::cv_descriptor_matcher_clear( self)
end

#emptyBool

Note:

method wrapper for bool cv::DescriptorMatcher::empty()

Returns:

  • (Bool)


25247
25248
25249
25250
# File 'lib/ropencv/ropencv_types.rb', line 25247

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

#get_algorithm(name) ⇒ Cv::Ptr::Cv_Algorithm Also known as: getAlgorithm

Note:

method wrapper for cv::Ptrcv::Algorithm cv::DescriptorMatcher::getAlgorithm(const cv::String name)

Parameters:

Returns:



25469
25470
25471
25472
25473
25474
25475
25476
25477
# File 'lib/ropencv/ropencv_types.rb', line 25469

def get_algorithm(name)
    __validate_pointer__
    result = Rbind::cv_descriptor_matcher_get_algorithm( self, name)
    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

#get_bool(name) ⇒ Bool Also known as: getBool

Note:

method wrapper for bool cv::DescriptorMatcher::getBool(const cv::String name)

Parameters:

Returns:

  • (Bool)


25418
25419
25420
25421
# File 'lib/ropencv/ropencv_types.rb', line 25418

def get_bool(name)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_get_bool( self, name)
end

#get_double(name) ⇒ Double Also known as: getDouble

Note:

method wrapper for double cv::DescriptorMatcher::getDouble(const cv::String name)

Parameters:

Returns:

  • (Double)


25409
25410
25411
25412
# File 'lib/ropencv/ropencv_types.rb', line 25409

def get_double(name)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_get_double( self, name)
end

#get_int(name) ⇒ Fixnum Also known as: getInt

Note:

method wrapper for int cv::DescriptorMatcher::getInt(const cv::String name)

Parameters:

Returns:

  • (Fixnum)


25400
25401
25402
25403
# File 'lib/ropencv/ropencv_types.rb', line 25400

def get_int(name)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_get_int( self, name)
end

#get_mat(name) ⇒ Cv::Mat Also known as: getMat

Note:

method wrapper for cv::Mat cv::DescriptorMatcher::getMat(const cv::String name)

Parameters:

Returns:



25441
25442
25443
25444
25445
25446
25447
25448
25449
# File 'lib/ropencv/ropencv_types.rb', line 25441

def get_mat(name)
    __validate_pointer__
    result = Rbind::cv_descriptor_matcher_get_mat( self, name)
    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

#get_mat_vector(name) ⇒ Std::Vector::Cv_Mat Also known as: getMatVector

Note:

method wrapper for std::vectorcv::Mat cv::DescriptorMatcher::getMatVector(const cv::String name)

Parameters:

Returns:



25455
25456
25457
25458
25459
25460
25461
25462
25463
# File 'lib/ropencv/ropencv_types.rb', line 25455

def get_mat_vector(name)
    __validate_pointer__
    result = Rbind::cv_descriptor_matcher_get_mat_vector( self, name)
    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

#get_params(names) ⇒ Void Also known as: getParams

Note:

method wrapper for void cv::DescriptorMatcher::getParams(std::vectorcv::String& names)

Parameters:

Returns:

  • (Void)


25576
25577
25578
25579
# File 'lib/ropencv/ropencv_types.rb', line 25576

def get_params(names)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_get_params( self, names)
end

#get_string(name) ⇒ Cv::String Also known as: getString

Note:

method wrapper for cv::String cv::DescriptorMatcher::getString(const cv::String name)

Parameters:

Returns:



25427
25428
25429
25430
25431
25432
25433
25434
25435
# File 'lib/ropencv/ropencv_types.rb', line 25427

def get_string(name)
    __validate_pointer__
    result = Rbind::cv_descriptor_matcher_get_string( self, name)
    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

#get_train_descriptorsStd::Vector::Cv_Mat Also known as: getTrainDescriptors

Note:

method wrapper for std::vectorcv::Mat cv::DescriptorMatcher::getTrainDescriptors()

Returns:



25227
25228
25229
25230
25231
25232
25233
25234
25235
# File 'lib/ropencv/ropencv_types.rb', line 25227

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

#knn_match(query_descriptors, train_descriptors, matches, k, mask = Cv::Mat.new(), compact_result = false) ⇒ Void #knn_match(query_descriptors, matches, k, masks = Std::Vector::Cv_Mat.new(), compact_result = false) ⇒ Void

Note:

wrapper for overloaded method knn_match

Overloads:

  • #knn_match(query_descriptors, train_descriptors, matches, k, mask = Cv::Mat.new(), compact_result = false) ⇒ Void

    Parameters:

    Returns:

    • (Void)
  • #knn_match(query_descriptors, matches, k, masks = Std::Vector::Cv_Mat.new(), compact_result = false) ⇒ Void

    Parameters:

    Returns:

    • (Void)

Raises:

  • (ArgumentError)


25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
# File 'lib/ropencv/ropencv_types.rb', line 25322

def knn_match(*args)
    __validate_pointer__
    # overloaded method wrapper for void cv::DescriptorMatcher::knnMatch(const cv::Mat queryDescriptors, const cv::Mat trainDescriptors, std::vector<std::vector<cv::DMatch> >& matches, int k, const cv::Mat mask = Mat(), bool compactResult = false)
    @@cv_descriptor_matcher_knn_match_defaults0 ||= [nil, nil, nil, nil, Cv::Mat.new(), false]
    if(args.size >= 4 && args.size <= 6)
        targs = args.clone
        targs.size.upto(5) do |i|
            targs[i] = @@cv_descriptor_matcher_knn_match_defaults0[i]
        end
        begin
                return Rbind::cv_descriptor_matcher_knn_match(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for void cv::DescriptorMatcher::knnMatch(const cv::Mat queryDescriptors, std::vector<std::vector<cv::DMatch> >& matches, int k, const std::vector<cv::Mat> masks = vector<Mat>(), bool compactResult = false)
    @@cv_descriptor_matcher_knn_match2_defaults1 ||= [nil, nil, nil, Std::Vector::Cv_Mat.new(), false]
    if(args.size >= 3 && args.size <= 5)
        targs = args.clone
        targs.size.upto(4) do |i|
            targs[i] = @@cv_descriptor_matcher_knn_match2_defaults1[i]
        end
        begin
                return Rbind::cv_descriptor_matcher_knn_match2(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}"
end

#match(query_descriptors, train_descriptors, matches, mask = Cv::Mat.new()) ⇒ Void #match(query_descriptors, matches, masks = Std::Vector::Cv_Mat.new()) ⇒ Void

Note:

wrapper for overloaded method match

Overloads:

  • #match(query_descriptors, train_descriptors, matches, mask = Cv::Mat.new()) ⇒ Void

    Parameters:

    Returns:

    • (Void)
  • #match(query_descriptors, matches, masks = Std::Vector::Cv_Mat.new()) ⇒ Void

    Parameters:

    Returns:

    • (Void)

Raises:

  • (ArgumentError)


25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
# File 'lib/ropencv/ropencv_types.rb', line 25272

def match(*args)
    __validate_pointer__
    # overloaded method wrapper for void cv::DescriptorMatcher::match(const cv::Mat queryDescriptors, const cv::Mat trainDescriptors, std::vector<cv::DMatch>& matches, const cv::Mat mask = Mat())
    @@cv_descriptor_matcher_match_defaults0 ||= [nil, nil, nil, Cv::Mat.new()]
    if(args.size >= 3 && args.size <= 4)
        targs = args.clone
        targs.size.upto(3) do |i|
            targs[i] = @@cv_descriptor_matcher_match_defaults0[i]
        end
        begin
                return Rbind::cv_descriptor_matcher_match(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for void cv::DescriptorMatcher::match(const cv::Mat queryDescriptors, std::vector<cv::DMatch>& matches, const std::vector<cv::Mat> masks = vector<Mat>())
    @@cv_descriptor_matcher_match2_defaults1 ||= [nil, nil, Std::Vector::Cv_Mat.new()]
    if(args.size >= 2 && args.size <= 3)
        targs = args.clone
        targs.size.upto(2) do |i|
            targs[i] = @@cv_descriptor_matcher_match2_defaults1[i]
        end
        begin
                return Rbind::cv_descriptor_matcher_match2(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}"
end

#param_help(name) ⇒ Cv::String Also known as: paramHelp

Note:

method wrapper for cv::String cv::DescriptorMatcher::paramHelp(const cv::String name)

Parameters:

Returns:



25553
25554
25555
25556
25557
25558
25559
25560
25561
# File 'lib/ropencv/ropencv_types.rb', line 25553

def param_help(name)
    __validate_pointer__
    result = Rbind::cv_descriptor_matcher_param_help( self, name)
    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

#param_type(name) ⇒ Fixnum Also known as: paramType

Note:

method wrapper for int cv::DescriptorMatcher::paramType(const cv::String name)

Parameters:

Returns:

  • (Fixnum)


25567
25568
25569
25570
# File 'lib/ropencv/ropencv_types.rb', line 25567

def param_type(name)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_param_type( self, name)
end

#radius_match(query_descriptors, train_descriptors, matches, max_distance, mask = Cv::Mat.new(), compact_result = false) ⇒ Void Also known as: radiusMatch

Note:

method wrapper for void cv::DescriptorMatcher::radiusMatch(const cv::Mat queryDescriptors, const cv::Mat trainDescriptors, std::vectorstd::vector<cv::DMatch >& matches, float maxDistance, const cv::Mat mask = cv::Mat(), bool compactResult = false)

Parameters:

Returns:

  • (Void)


25370
25371
25372
25373
# File 'lib/ropencv/ropencv_types.rb', line 25370

def radius_match(query_descriptors, train_descriptors, matches, max_distance, mask = Cv::Mat.new(), compact_result = false)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_radius_match( self, query_descriptors, train_descriptors, matches, max_distance, mask, compact_result)
end

#set_algorithm(name, value) ⇒ Void Also known as: setAlgorithm

Note:

method wrapper for void cv::DescriptorMatcher::setAlgorithm(const cv::String name, const cv::Ptrcv::Algorithm value)

Parameters:

Returns:

  • (Void)


25544
25545
25546
25547
# File 'lib/ropencv/ropencv_types.rb', line 25544

def set_algorithm(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_algorithm( self, name, value)
end

#set_bool(name, value) ⇒ Void Also known as: setBool

Note:

method wrapper for void cv::DescriptorMatcher::setBool(const cv::String name, bool value)

Parameters:

Returns:

  • (Void)


25504
25505
25506
25507
# File 'lib/ropencv/ropencv_types.rb', line 25504

def set_bool(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_bool( self, name, value)
end

#set_double(name, value) ⇒ Void Also known as: setDouble

Note:

method wrapper for void cv::DescriptorMatcher::setDouble(const cv::String name, double value)

Parameters:

Returns:

  • (Void)


25494
25495
25496
25497
# File 'lib/ropencv/ropencv_types.rb', line 25494

def set_double(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_double( self, name, value)
end

#set_int(name, value) ⇒ Void Also known as: setInt

Note:

method wrapper for void cv::DescriptorMatcher::setInt(const cv::String name, int value)

Parameters:

Returns:

  • (Void)


25484
25485
25486
25487
# File 'lib/ropencv/ropencv_types.rb', line 25484

def set_int(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_int( self, name, value)
end

#set_mat(name, value) ⇒ Void Also known as: setMat

Note:

method wrapper for void cv::DescriptorMatcher::setMat(const cv::String name, const cv::Mat value)

Parameters:

Returns:

  • (Void)


25524
25525
25526
25527
# File 'lib/ropencv/ropencv_types.rb', line 25524

def set_mat(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_mat( self, name, value)
end

#set_mat_vector(name, value) ⇒ Void Also known as: setMatVector

Note:

method wrapper for void cv::DescriptorMatcher::setMatVector(const cv::String name, const std::vectorcv::Mat value)

Parameters:

Returns:

  • (Void)


25534
25535
25536
25537
# File 'lib/ropencv/ropencv_types.rb', line 25534

def set_mat_vector(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_mat_vector( self, name, value)
end

#set_string(name, value) ⇒ Void Also known as: setString

Note:

method wrapper for void cv::DescriptorMatcher::setString(const cv::String name, const cv::String value)

Parameters:

Returns:

  • (Void)


25514
25515
25516
25517
# File 'lib/ropencv/ropencv_types.rb', line 25514

def set_string(name, value)
    __validate_pointer__
    Rbind::cv_descriptor_matcher_set_string( self, name, value)
end

#to_sObject

converts DescriptorMatcher into a string by crawling through all its attributes



25208
25209
25210
# File 'lib/ropencv/ropencv_types.rb', line 25208

def to_s
    "#<cv::DescriptorMatcher >"
end

#trainVoid

Note:

method wrapper for void cv::DescriptorMatcher::train()

Returns:

  • (Void)


25254
25255
25256
25257
# File 'lib/ropencv/ropencv_types.rb', line 25254

def train()
    __validate_pointer__
    Rbind::cv_descriptor_matcher_train( self)
end