Class: OpenCV::Cv::Algorithm
- Inherits:
-
Object
- Object
- OpenCV::Cv::Algorithm
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- ._create(name) ⇒ Cv::Ptr::Cv_Algorithm
- .get_list(algorithms) ⇒ Void (also: getList)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #get_algorithm(name) ⇒ Cv::Ptr::Cv_Algorithm (also: #getAlgorithm)
- #get_bool(name) ⇒ Bool (also: #getBool)
- #get_double(name) ⇒ Double (also: #getDouble)
-
#get_int(name) ⇒ Fixnum
(also: #getInt)
methods.
- #get_mat(name) ⇒ Cv::Mat (also: #getMat)
- #get_mat_vector(name) ⇒ Std::Vector::Cv_Mat (also: #getMatVector)
- #get_params(names) ⇒ Void (also: #getParams)
- #get_string(name) ⇒ Cv::String (also: #getString)
- #param_help(name) ⇒ Cv::String (also: #paramHelp)
- #param_type(name) ⇒ Fixnum (also: #paramType)
- #set_algorithm(name, value) ⇒ Void (also: #setAlgorithm)
- #set_bool(name, value) ⇒ Void (also: #setBool)
- #set_double(name, value) ⇒ Void (also: #setDouble)
- #set_int(name, value) ⇒ Void (also: #setInt)
- #set_mat(name, value) ⇒ Void (also: #setMat)
- #set_mat_vector(name, value) ⇒ Void (also: #setMatVector)
- #set_string(name, value) ⇒ Void (also: #setString)
-
#to_s ⇒ Object
converts Algorithm into a string by crawling through all its attributes.
Class Method Details
._create(name) ⇒ Cv::Ptr::Cv_Algorithm
wrapper for static method cv::Ptrcv::Algorithm cv::Algorithm::_create(const cv::String name)
15105 15106 15107 |
# File 'lib/ropencv/ropencv_types.rb', line 15105 def self._create(name) Rbind::cv_algorithm__create(name) end |
.get_list(algorithms) ⇒ Void Also known as: getList
wrapper for static method void cv::Algorithm::getList(std::vectorcv::String& algorithms)
15097 15098 15099 |
# File 'lib/ropencv/ropencv_types.rb', line 15097 def self.get_list(algorithms) Rbind::cv_algorithm_get_list(algorithms) end |
.new(*args) ⇒ Object
14827 14828 14829 14830 14831 14832 14833 14834 |
# File 'lib/ropencv/ropencv_types.rb', line 14827 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(AlgorithmStruct) 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 |
.null ⇒ Object
returns a null pointer to the object
14823 14824 14825 |
# File 'lib/ropencv/ropencv_types.rb', line 14823 def self.null new(AlgorithmStruct.new) end |
Instance Method Details
#get_algorithm(name) ⇒ Cv::Ptr::Cv_Algorithm Also known as: getAlgorithm
method wrapper for cv::Ptrcv::Algorithm cv::Algorithm::getAlgorithm(const cv::String name)
14981 14982 14983 14984 14985 14986 14987 14988 14989 |
# File 'lib/ropencv/ropencv_types.rb', line 14981 def get_algorithm(name) __validate_pointer__ result = Rbind::cv_algorithm_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
method wrapper for bool cv::Algorithm::getBool(const cv::String name)
14930 14931 14932 14933 |
# File 'lib/ropencv/ropencv_types.rb', line 14930 def get_bool(name) __validate_pointer__ Rbind::cv_algorithm_get_bool( self, name) end |
#get_double(name) ⇒ Double Also known as: getDouble
method wrapper for double cv::Algorithm::getDouble(const cv::String name)
14921 14922 14923 14924 |
# File 'lib/ropencv/ropencv_types.rb', line 14921 def get_double(name) __validate_pointer__ Rbind::cv_algorithm_get_double( self, name) end |
#get_int(name) ⇒ Fixnum Also known as: getInt
method wrapper for int cv::Algorithm::getInt(const cv::String name)
methods
14912 14913 14914 14915 |
# File 'lib/ropencv/ropencv_types.rb', line 14912 def get_int(name) __validate_pointer__ Rbind::cv_algorithm_get_int( self, name) end |
#get_mat(name) ⇒ Cv::Mat Also known as: getMat
method wrapper for cv::Mat cv::Algorithm::getMat(const cv::String name)
14953 14954 14955 14956 14957 14958 14959 14960 14961 |
# File 'lib/ropencv/ropencv_types.rb', line 14953 def get_mat(name) __validate_pointer__ result = Rbind::cv_algorithm_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
method wrapper for std::vectorcv::Mat cv::Algorithm::getMatVector(const cv::String name)
14967 14968 14969 14970 14971 14972 14973 14974 14975 |
# File 'lib/ropencv/ropencv_types.rb', line 14967 def get_mat_vector(name) __validate_pointer__ result = Rbind::cv_algorithm_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
method wrapper for void cv::Algorithm::getParams(std::vectorcv::String& names)
15088 15089 15090 15091 |
# File 'lib/ropencv/ropencv_types.rb', line 15088 def get_params(names) __validate_pointer__ Rbind::cv_algorithm_get_params( self, names) end |
#get_string(name) ⇒ Cv::String Also known as: getString
method wrapper for cv::String cv::Algorithm::getString(const cv::String name)
14939 14940 14941 14942 14943 14944 14945 14946 14947 |
# File 'lib/ropencv/ropencv_types.rb', line 14939 def get_string(name) __validate_pointer__ result = Rbind::cv_algorithm_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 |
#param_help(name) ⇒ Cv::String Also known as: paramHelp
method wrapper for cv::String cv::Algorithm::paramHelp(const cv::String name)
15065 15066 15067 15068 15069 15070 15071 15072 15073 |
# File 'lib/ropencv/ropencv_types.rb', line 15065 def param_help(name) __validate_pointer__ result = Rbind::cv_algorithm_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
method wrapper for int cv::Algorithm::paramType(const cv::String name)
15079 15080 15081 15082 |
# File 'lib/ropencv/ropencv_types.rb', line 15079 def param_type(name) __validate_pointer__ Rbind::cv_algorithm_param_type( self, name) end |
#set_algorithm(name, value) ⇒ Void Also known as: setAlgorithm
method wrapper for void cv::Algorithm::setAlgorithm(const cv::String name, const cv::Ptrcv::Algorithm value)
15056 15057 15058 15059 |
# File 'lib/ropencv/ropencv_types.rb', line 15056 def set_algorithm(name, value) __validate_pointer__ Rbind::cv_algorithm_set_algorithm( self, name, value) end |
#set_bool(name, value) ⇒ Void Also known as: setBool
method wrapper for void cv::Algorithm::setBool(const cv::String name, bool value)
15016 15017 15018 15019 |
# File 'lib/ropencv/ropencv_types.rb', line 15016 def set_bool(name, value) __validate_pointer__ Rbind::cv_algorithm_set_bool( self, name, value) end |
#set_double(name, value) ⇒ Void Also known as: setDouble
method wrapper for void cv::Algorithm::setDouble(const cv::String name, double value)
15006 15007 15008 15009 |
# File 'lib/ropencv/ropencv_types.rb', line 15006 def set_double(name, value) __validate_pointer__ Rbind::cv_algorithm_set_double( self, name, value) end |
#set_int(name, value) ⇒ Void Also known as: setInt
method wrapper for void cv::Algorithm::setInt(const cv::String name, int value)
14996 14997 14998 14999 |
# File 'lib/ropencv/ropencv_types.rb', line 14996 def set_int(name, value) __validate_pointer__ Rbind::cv_algorithm_set_int( self, name, value) end |
#set_mat(name, value) ⇒ Void Also known as: setMat
method wrapper for void cv::Algorithm::setMat(const cv::String name, const cv::Mat value)
15036 15037 15038 15039 |
# File 'lib/ropencv/ropencv_types.rb', line 15036 def set_mat(name, value) __validate_pointer__ Rbind::cv_algorithm_set_mat( self, name, value) end |
#set_mat_vector(name, value) ⇒ Void Also known as: setMatVector
method wrapper for void cv::Algorithm::setMatVector(const cv::String name, const std::vectorcv::Mat value)
15046 15047 15048 15049 |
# File 'lib/ropencv/ropencv_types.rb', line 15046 def set_mat_vector(name, value) __validate_pointer__ Rbind::cv_algorithm_set_mat_vector( self, name, value) end |
#set_string(name, value) ⇒ Void Also known as: setString
method wrapper for void cv::Algorithm::setString(const cv::String name, const cv::String value)
15026 15027 15028 15029 |
# File 'lib/ropencv/ropencv_types.rb', line 15026 def set_string(name, value) __validate_pointer__ Rbind::cv_algorithm_set_string( self, name, value) end |
#to_s ⇒ Object
converts Algorithm into a string by crawling through all its attributes
14900 14901 14902 |
# File 'lib/ropencv/ropencv_types.rb', line 14900 def to_s "#<cv::Algorithm >" end |