Class: OpenCV::CvBoostParams
- Inherits:
-
Object
- Object
- OpenCV::CvBoostParams
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ruby/ropencv/ropencv_types.rb
Instance Attribute Summary collapse
- #__obj_ptr__ ⇒ Object readonly private
Class Method Summary collapse
-
.from_native(ptr, context) ⇒ Object
private
can be overwritten by the user.
- .new(*args) ⇒ Object
- .rbind_from_native(ptr, context) ⇒ Object private
- .rbind_to_native(obj, context) ⇒ Object private
-
.to_native(obj, context) ⇒ Object
private
can be overwritten by the user.
Instance Method Summary collapse
-
#__owner__? ⇒ Boolean
private
returns true if the underlying pointer is owner of the real object.
-
#boost_type ⇒ Object
methods wrapper for int boost_type.
-
#boost_type=(value) ⇒ Object
wrapper for int boost_type.
-
#initialize(ptr) ⇒ CvBoostParams
constructor
private
A new instance of CvBoostParams.
-
#split_criteria ⇒ Object
wrapper for int split_criteria.
-
#split_criteria=(value) ⇒ Object
wrapper for int split_criteria.
-
#weak_count ⇒ Object
wrapper for int weak_count.
-
#weak_count=(value) ⇒ Object
wrapper for int weak_count.
-
#weight_trim_rate ⇒ Object
wrapper for double weight_trim_rate.
-
#weight_trim_rate=(value) ⇒ Object
wrapper for double weight_trim_rate.
Constructor Details
#initialize(ptr) ⇒ CvBoostParams
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CvBoostParams.
21102 21103 21104 21105 21106 21107 21108 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21102 def initialize(ptr) @__obj_ptr__ = if ptr.is_a? CvBoostParamsStruct ptr else CvBoostParamsStruct.new(FFI::AutoPointer.new(ptr,CvBoostParamsStruct.method(:release))) end end |
Instance Attribute Details
#__obj_ptr__ ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21099 21100 21101 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21099 def __obj_ptr__ @__obj_ptr__ end |
Class Method Details
.from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
21094 21095 21096 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21094 def self.from_native(ptr,context) rbind_from_native(ptr,context) end |
.new(*args) ⇒ Object
21063 21064 21065 21066 21067 21068 21069 21070 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21063 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 |
.rbind_from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21082 21083 21084 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21082 def self.rbind_from_native(ptr,context) CvBoostParams.new(ptr) end |
.rbind_to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21073 21074 21075 21076 21077 21078 21079 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21073 def self.rbind_to_native(obj,context) if obj.is_a? CvBoostParams obj.__obj_ptr__ else raise TypeError, "expected kind of #{name}, was #{obj.class}" end end |
.to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
21088 21089 21090 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21088 def self.to_native(obj,context) rbind_to_native(obj,context) end |
Instance Method Details
#__owner__? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
returns true if the underlying pointer is owner of the real object
21113 21114 21115 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21113 def __owner__? @__obj_ptr__[:bowner] end |
#boost_type ⇒ Object
methods wrapper for int boost_type
21127 21128 21129 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21127 def boost_type() Rbind::cv_boost_params_get_boost_type( self) end |
#boost_type=(value) ⇒ Object
wrapper for int boost_type
21132 21133 21134 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21132 def boost_type=(value) Rbind::cv_boost_params_set_boost_type( self, value) end |
#split_criteria ⇒ Object
wrapper for int split_criteria
21147 21148 21149 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21147 def split_criteria() Rbind::cv_boost_params_get_split_criteria( self) end |
#split_criteria=(value) ⇒ Object
wrapper for int split_criteria
21152 21153 21154 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21152 def split_criteria=(value) Rbind::cv_boost_params_set_split_criteria( self, value) end |
#weak_count ⇒ Object
wrapper for int weak_count
21137 21138 21139 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21137 def weak_count() Rbind::cv_boost_params_get_weak_count( self) end |
#weak_count=(value) ⇒ Object
wrapper for int weak_count
21142 21143 21144 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21142 def weak_count=(value) Rbind::cv_boost_params_set_weak_count( self, value) end |
#weight_trim_rate ⇒ Object
wrapper for double weight_trim_rate
21157 21158 21159 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21157 def weight_trim_rate() Rbind::cv_boost_params_get_weight_trim_rate( self) end |
#weight_trim_rate=(value) ⇒ Object
wrapper for double weight_trim_rate
21162 21163 21164 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 21162 def weight_trim_rate=(value) Rbind::cv_boost_params_set_weight_trim_rate( self, value) end |