Class: OpenCV::CvBoostParams
- Inherits:
-
Object
- Object
- OpenCV::CvBoostParams
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#boost_type ⇒ Fixnum
(also: #get_boost_type)
methods.
- #boost_type=(value) ⇒ Void (also: #set_boost_type)
- #split_criteria ⇒ Fixnum (also: #get_split_criteria)
- #split_criteria=(value) ⇒ Void (also: #set_split_criteria)
-
#to_s ⇒ Object
converts CvBoostParams into a string by crawling through all its attributes.
- #weak_count ⇒ Fixnum (also: #get_weak_count)
- #weak_count=(value) ⇒ Void (also: #set_weak_count)
- #weight_trim_rate ⇒ Double (also: #get_weight_trim_rate)
- #weight_trim_rate=(value) ⇒ Void (also: #set_weight_trim_rate)
Class Method Details
.new(*args) ⇒ Object
44227 44228 44229 44230 44231 44232 44233 44234 |
# File 'lib/ropencv/ropencv_types.rb', line 44227 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvBoostParamsStruct) 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
44223 44224 44225 |
# File 'lib/ropencv/ropencv_types.rb', line 44223 def self.null new(CvBoostParamsStruct.new) end |
Instance Method Details
#boost_type ⇒ Fixnum Also known as: get_boost_type
Note:
method wrapper for int boost_type
methods
44311 44312 44313 44314 |
# File 'lib/ropencv/ropencv_types.rb', line 44311 def boost_type() __validate_pointer__ Rbind::cv_boost_params_get_boost_type( self) end |
#boost_type=(value) ⇒ Void Also known as: set_boost_type
Note:
method wrapper for int boost_type
44320 44321 44322 44323 |
# File 'lib/ropencv/ropencv_types.rb', line 44320 def boost_type=(value) __validate_pointer__ Rbind::cv_boost_params_set_boost_type( self, value) end |
#split_criteria ⇒ Fixnum Also known as: get_split_criteria
Note:
method wrapper for int split_criteria
44345 44346 44347 44348 |
# File 'lib/ropencv/ropencv_types.rb', line 44345 def split_criteria() __validate_pointer__ Rbind::cv_boost_params_get_split_criteria( self) end |
#split_criteria=(value) ⇒ Void Also known as: set_split_criteria
Note:
method wrapper for int split_criteria
44354 44355 44356 44357 |
# File 'lib/ropencv/ropencv_types.rb', line 44354 def split_criteria=(value) __validate_pointer__ Rbind::cv_boost_params_set_split_criteria( self, value) end |
#to_s ⇒ Object
converts CvBoostParams into a string by crawling through all its attributes
44300 44301 44302 |
# File 'lib/ropencv/ropencv_types.rb', line 44300 def to_s "#<CvBoostParams boost_type=#{self.boost_type} weak_count=#{self.weak_count} split_criteria=#{self.split_criteria} weight_trim_rate=#{self.weight_trim_rate}>" end |
#weak_count ⇒ Fixnum Also known as: get_weak_count
Note:
method wrapper for int weak_count
44328 44329 44330 44331 |
# File 'lib/ropencv/ropencv_types.rb', line 44328 def weak_count() __validate_pointer__ Rbind::cv_boost_params_get_weak_count( self) end |
#weak_count=(value) ⇒ Void Also known as: set_weak_count
Note:
method wrapper for int weak_count
44337 44338 44339 44340 |
# File 'lib/ropencv/ropencv_types.rb', line 44337 def weak_count=(value) __validate_pointer__ Rbind::cv_boost_params_set_weak_count( self, value) end |
#weight_trim_rate ⇒ Double Also known as: get_weight_trim_rate
Note:
method wrapper for double weight_trim_rate
44362 44363 44364 44365 |
# File 'lib/ropencv/ropencv_types.rb', line 44362 def weight_trim_rate() __validate_pointer__ Rbind::cv_boost_params_get_weight_trim_rate( self) end |
#weight_trim_rate=(value) ⇒ Void Also known as: set_weight_trim_rate
Note:
method wrapper for double weight_trim_rate
44371 44372 44373 44374 |
# File 'lib/ropencv/ropencv_types.rb', line 44371 def weight_trim_rate=(value) __validate_pointer__ Rbind::cv_boost_params_set_weight_trim_rate( self, value) end |