Class: OpenCV::Cv::ChiHistogramCostExtractor

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

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


72583
72584
72585
72586
72587
72588
72589
72590
# File 'lib/ropencv/ropencv_types.rb', line 72583

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



72579
72580
72581
# File 'lib/ropencv/ropencv_types.rb', line 72579

def self.null
    new(ChiHistogramCostExtractorStruct.new)
end

Instance Method Details

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

Note:

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

Parameters:

Returns:

  • (Void)


72684
72685
72686
72687
# File 'lib/ropencv/ropencv_types.rb', line 72684

def build_cost_matrix(_descriptors1, _descriptors2, cost_matrix)
    __validate_pointer__
    Rbind::cv_chi_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::ChiHistogramCostExtractor::castToAlgorithm(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



72727
72728
72729
72730
72731
72732
72733
72734
72735
# File 'lib/ropencv/ropencv_types.rb', line 72727

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

#cast_to_histogram_cost_extractor(parse_ownership) ⇒ Cv::HistogramCostExtractor Also known as: castToHistogramCostExtractor

Note:

method wrapper for cv::HistogramCostExtractor* cv::ChiHistogramCostExtractor::castToHistogramCostExtractor(bool parse_ownership)

methods

Parameters:

  • parse_ownership (Bool)

Returns:



72668
72669
72670
72671
72672
72673
72674
72675
72676
# File 'lib/ropencv/ropencv_types.rb', line 72668

def cast_to_histogram_cost_extractor(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_chi_histogram_cost_extractor_cast_to_histogram_cost_extractor( 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::ChiHistogramCostExtractor::clear()

Returns:

  • (Void)


72740
72741
72742
72743
# File 'lib/ropencv/ropencv_types.rb', line 72740

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

#emptyBool

Note:

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

Returns:

  • (Bool)


72764
72765
72766
72767
# File 'lib/ropencv/ropencv_types.rb', line 72764

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

#get_default_costFloat Also known as: getDefaultCost

Note:

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

Returns:

  • (Float)


72718
72719
72720
72721
# File 'lib/ropencv/ropencv_types.rb', line 72718

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

#get_default_nameStd::String Also known as: getDefaultName

Note:

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

Returns:



72779
72780
72781
72782
72783
72784
72785
72786
72787
# File 'lib/ropencv/ropencv_types.rb', line 72779

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

Returns:

  • (Fixnum)


72701
72702
72703
72704
# File 'lib/ropencv/ropencv_types.rb', line 72701

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

#read(fn) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


72757
72758
72759
72760
# File 'lib/ropencv/ropencv_types.rb', line 72757

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

#save(filename) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


72772
72773
72774
72775
# File 'lib/ropencv/ropencv_types.rb', line 72772

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

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

Note:

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

Parameters:

  • default_cost (Float)

Returns:

  • (Void)


72710
72711
72712
72713
# File 'lib/ropencv/ropencv_types.rb', line 72710

def set_default_cost(default_cost)
    __validate_pointer__
    Rbind::cv_chi_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::ChiHistogramCostExtractor::setNDummies(int nDummies)

Parameters:

  • n_dummies (Fixnum)

Returns:

  • (Void)


72693
72694
72695
72696
# File 'lib/ropencv/ropencv_types.rb', line 72693

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

#to_sObject

converts ChiHistogramCostExtractor into a string by crawling through all its attributes



72656
72657
72658
# File 'lib/ropencv/ropencv_types.rb', line 72656

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

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

Note:

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

Parameters:

Returns:

  • (Void)


72749
72750
72751
72752
# File 'lib/ropencv/ropencv_types.rb', line 72749

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