Class: OpenCV::CvParamGrid
- Inherits:
-
Object
- Object
- OpenCV::CvParamGrid
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Constants collapse
- SVM_C =
0
- SVM_GAMMA =
1
- SVM_P =
2
- SVM_NU =
3
- SVM_COEF =
4
- SVM_DEGREE =
5
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #max_val ⇒ Double (also: #get_max_val)
- #max_val=(value) ⇒ Void (also: #set_max_val)
-
#min_val ⇒ Double
(also: #get_min_val)
methods.
- #min_val=(value) ⇒ Void (also: #set_min_val)
- #step ⇒ Double (also: #get_step)
- #step=(value) ⇒ Void (also: #set_step)
-
#to_s ⇒ Object
converts CvParamGrid into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
41807 41808 41809 41810 41811 41812 41813 41814 |
# File 'lib/ropencv/ropencv_types.rb', line 41807 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvParamGridStruct) 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
41803 41804 41805 |
# File 'lib/ropencv/ropencv_types.rb', line 41803 def self.null new(CvParamGridStruct.new) end |
Instance Method Details
#max_val ⇒ Double Also known as: get_max_val
Note:
method wrapper for double max_val
41914 41915 41916 41917 |
# File 'lib/ropencv/ropencv_types.rb', line 41914 def max_val() __validate_pointer__ Rbind::cv_param_grid_get_max_val( self) end |
#max_val=(value) ⇒ Void Also known as: set_max_val
Note:
method wrapper for double max_val
41923 41924 41925 41926 |
# File 'lib/ropencv/ropencv_types.rb', line 41923 def max_val=(value) __validate_pointer__ Rbind::cv_param_grid_set_max_val( self, value) end |
#min_val ⇒ Double Also known as: get_min_val
Note:
method wrapper for double min_val
methods
41897 41898 41899 41900 |
# File 'lib/ropencv/ropencv_types.rb', line 41897 def min_val() __validate_pointer__ Rbind::cv_param_grid_get_min_val( self) end |
#min_val=(value) ⇒ Void Also known as: set_min_val
Note:
method wrapper for double min_val
41906 41907 41908 41909 |
# File 'lib/ropencv/ropencv_types.rb', line 41906 def min_val=(value) __validate_pointer__ Rbind::cv_param_grid_set_min_val( self, value) end |
#step ⇒ Double Also known as: get_step
Note:
method wrapper for double step
41931 41932 41933 41934 |
# File 'lib/ropencv/ropencv_types.rb', line 41931 def step() __validate_pointer__ Rbind::cv_param_grid_get_step( self) end |
#step=(value) ⇒ Void Also known as: set_step
Note:
method wrapper for double step
41940 41941 41942 41943 |
# File 'lib/ropencv/ropencv_types.rb', line 41940 def step=(value) __validate_pointer__ Rbind::cv_param_grid_set_step( self, value) end |
#to_s ⇒ Object
converts CvParamGrid into a string by crawling through all its attributes
41880 41881 41882 |
# File 'lib/ropencv/ropencv_types.rb', line 41880 def to_s "#<CvParamGrid min_val=#{self.min_val} max_val=#{self.max_val} step=#{self.step}>" end |