Class: OpenCV::Cv::HistogramCostExtractor

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

.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::HistogramCostExtractor Also known as: castFromAlgorithm

Note:

wrapper for static method cv::HistogramCostExtractor* cv::HistogramCostExtractor::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)

Parameters:

Returns:



71682
71683
71684
# File 'lib/ropencv/ropencv_types.rb', line 71682

def self.cast_from_algorithm(ptr, parse_ownership)
    Rbind::cv_histogram_cost_extractor_cast_from_algorithm(ptr, parse_ownership)
end

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


71537
71538
71539
71540
71541
71542
71543
71544
# File 'lib/ropencv/ropencv_types.rb', line 71537

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(HistogramCostExtractorStruct)
        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



71533
71534
71535
# File 'lib/ropencv/ropencv_types.rb', line 71533

def self.null
    new(HistogramCostExtractorStruct.new)
end

Instance Method Details

#build_cost_matrix(_descriptors1, _descriptors2, cost_matrix) ⇒ Void Also known as: buildCostMatrix

Note:

method wrapper for void cv::HistogramCostExtractor::buildCostMatrix(const cv::Mat descriptors1, const cv::Mat descriptors2, cv::Mat& costMatrix)

methods

Parameters:

Returns:

  • (Void)


71624
71625
71626
71627
# File 'lib/ropencv/ropencv_types.rb', line 71624

def build_cost_matrix(_descriptors1, _descriptors2, cost_matrix)
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_build_cost_matrix( self, _descriptors1, _descriptors2, cost_matrix)
end

#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm

Note:

method wrapper for cv::Algorithm* cv::HistogramCostExtractor::castToAlgorithm(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



71667
71668
71669
71670
71671
71672
71673
71674
71675
# File 'lib/ropencv/ropencv_types.rb', line 71667

def cast_to_algorithm(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_histogram_cost_extractor_cast_to_algorithm( self, parse_ownership)
    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::HistogramCostExtractor::clear()

Returns:

  • (Void)


71689
71690
71691
71692
# File 'lib/ropencv/ropencv_types.rb', line 71689

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

#emptyBool

Note:

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

Returns:

  • (Bool)


71713
71714
71715
71716
# File 'lib/ropencv/ropencv_types.rb', line 71713

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

#get_default_costFloat Also known as: getDefaultCost

Note:

method wrapper for float cv::HistogramCostExtractor::getDefaultCost()

Returns:

  • (Float)


71658
71659
71660
71661
# File 'lib/ropencv/ropencv_types.rb', line 71658

def get_default_cost()
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_get_default_cost( self)
end

#get_default_nameStd::String Also known as: getDefaultName

Note:

method wrapper for const std::string cv::HistogramCostExtractor::getDefaultName()

Returns:



71728
71729
71730
71731
71732
71733
71734
71735
71736
# File 'lib/ropencv/ropencv_types.rb', line 71728

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

#getn_dummiesFixnum Also known as: getNDummies

Note:

method wrapper for int cv::HistogramCostExtractor::getNDummies()

Returns:

  • (Fixnum)


71641
71642
71643
71644
# File 'lib/ropencv/ropencv_types.rb', line 71641

def getn_dummies()
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_getn_dummies( self)
end

#read(fn) ⇒ Void

Note:

method wrapper for void cv::HistogramCostExtractor::read(const cv::FileNode fn)

Parameters:

Returns:

  • (Void)


71706
71707
71708
71709
# File 'lib/ropencv/ropencv_types.rb', line 71706

def read(fn)
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_read( self, fn)
end

#save(filename) ⇒ Void

Note:

method wrapper for void cv::HistogramCostExtractor::save(const std::string filename)

Parameters:

Returns:

  • (Void)


71721
71722
71723
71724
# File 'lib/ropencv/ropencv_types.rb', line 71721

def save(filename)
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_save( self, filename)
end

#set_default_cost(default_cost) ⇒ Void Also known as: setDefaultCost

Note:

method wrapper for void cv::HistogramCostExtractor::setDefaultCost(float defaultCost)

Parameters:

  • default_cost (Float)

Returns:

  • (Void)


71650
71651
71652
71653
# File 'lib/ropencv/ropencv_types.rb', line 71650

def set_default_cost(default_cost)
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_set_default_cost( self, default_cost)
end

#setn_dummies(n_dummies) ⇒ Void Also known as: setNDummies

Note:

method wrapper for void cv::HistogramCostExtractor::setNDummies(int nDummies)

Parameters:

  • n_dummies (Fixnum)

Returns:

  • (Void)


71633
71634
71635
71636
# File 'lib/ropencv/ropencv_types.rb', line 71633

def setn_dummies(n_dummies)
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_setn_dummies( self, n_dummies)
end

#to_sObject

converts HistogramCostExtractor into a string by crawling through all its attributes



71610
71611
71612
# File 'lib/ropencv/ropencv_types.rb', line 71610

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

#write(fs, name = Std::String.new()) ⇒ Void

Note:

method wrapper for void cv::HistogramCostExtractor::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())

Parameters:

Returns:

  • (Void)


71698
71699
71700
71701
# File 'lib/ropencv/ropencv_types.rb', line 71698

def write(fs, name = Std::String.new())
    __validate_pointer__
    Rbind::cv_histogram_cost_extractor_write( self, fs, name)
end