Class: OpenCV::Cv::TrackerMIL::Params
- Inherits:
-
Object
- Object
- OpenCV::Cv::TrackerMIL::Params
- 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
- #feature_set_num_features ⇒ Fixnum (also: #get_featureSetNumFeatures)
- #feature_set_num_features=(value) ⇒ Void (also: #set_featureSetNumFeatures)
-
#sampler_init_in_radius ⇒ Float
(also: #get_samplerInitInRadius)
methods.
- #sampler_init_in_radius=(value) ⇒ Void (also: #set_samplerInitInRadius)
- #sampler_init_max_neg_num ⇒ Fixnum (also: #get_samplerInitMaxNegNum)
- #sampler_init_max_neg_num=(value) ⇒ Void (also: #set_samplerInitMaxNegNum)
- #sampler_search_win_size ⇒ Float (also: #get_samplerSearchWinSize)
- #sampler_search_win_size=(value) ⇒ Void (also: #set_samplerSearchWinSize)
- #sampler_track_in_radius ⇒ Float (also: #get_samplerTrackInRadius)
- #sampler_track_in_radius=(value) ⇒ Void (also: #set_samplerTrackInRadius)
- #sampler_track_max_neg_num ⇒ Fixnum (also: #get_samplerTrackMaxNegNum)
- #sampler_track_max_neg_num=(value) ⇒ Void (also: #set_samplerTrackMaxNegNum)
- #sampler_track_max_pos_num ⇒ Fixnum (also: #get_samplerTrackMaxPosNum)
- #sampler_track_max_pos_num=(value) ⇒ Void (also: #set_samplerTrackMaxPosNum)
-
#to_s ⇒ Object
converts Params into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
44507 44508 44509 44510 44511 44512 44513 44514 44515 44516 44517 44518 44519 44520 44521 44522 44523 44524 44525 44526 44527 |
# File 'lib/ropencv/ropencv_types.rb', line 44507 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(ParamsStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end # overloaded method wrapper for cv::TrackerMIL::Params::Params() @@cv_trackermil_params_params_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_trackermil_params_params_defaults0[i] end begin return Rbind::cv_trackermil_params_params(*targs) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
44503 44504 44505 |
# File 'lib/ropencv/ropencv_types.rb', line 44503 def self.null new(ParamsStruct.new) end |
Instance Method Details
#feature_set_num_features ⇒ Fixnum Also known as: get_featureSetNumFeatures
method wrapper for int featureSetNumFeatures
44706 44707 44708 44709 |
# File 'lib/ropencv/ropencv_types.rb', line 44706 def feature_set_num_features() __validate_pointer__ Rbind::cv_trackermil_params_get_feature_set_num_features( self) end |
#feature_set_num_features=(value) ⇒ Void Also known as: set_featureSetNumFeatures
method wrapper for int featureSetNumFeatures
44715 44716 44717 44718 |
# File 'lib/ropencv/ropencv_types.rb', line 44715 def feature_set_num_features=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_feature_set_num_features( self, value) end |
#sampler_init_in_radius ⇒ Float Also known as: get_samplerInitInRadius
method wrapper for float samplerInitInRadius
methods
44604 44605 44606 44607 |
# File 'lib/ropencv/ropencv_types.rb', line 44604 def sampler_init_in_radius() __validate_pointer__ Rbind::cv_trackermil_params_get_sampler_init_in_radius( self) end |
#sampler_init_in_radius=(value) ⇒ Void Also known as: set_samplerInitInRadius
method wrapper for float samplerInitInRadius
44613 44614 44615 44616 |
# File 'lib/ropencv/ropencv_types.rb', line 44613 def sampler_init_in_radius=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_sampler_init_in_radius( self, value) end |
#sampler_init_max_neg_num ⇒ Fixnum Also known as: get_samplerInitMaxNegNum
method wrapper for int samplerInitMaxNegNum
44621 44622 44623 44624 |
# File 'lib/ropencv/ropencv_types.rb', line 44621 def sampler_init_max_neg_num() __validate_pointer__ Rbind::cv_trackermil_params_get_sampler_init_max_neg_num( self) end |
#sampler_init_max_neg_num=(value) ⇒ Void Also known as: set_samplerInitMaxNegNum
method wrapper for int samplerInitMaxNegNum
44630 44631 44632 44633 |
# File 'lib/ropencv/ropencv_types.rb', line 44630 def sampler_init_max_neg_num=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_sampler_init_max_neg_num( self, value) end |
#sampler_search_win_size ⇒ Float Also known as: get_samplerSearchWinSize
method wrapper for float samplerSearchWinSize
44638 44639 44640 44641 |
# File 'lib/ropencv/ropencv_types.rb', line 44638 def sampler_search_win_size() __validate_pointer__ Rbind::cv_trackermil_params_get_sampler_search_win_size( self) end |
#sampler_search_win_size=(value) ⇒ Void Also known as: set_samplerSearchWinSize
method wrapper for float samplerSearchWinSize
44647 44648 44649 44650 |
# File 'lib/ropencv/ropencv_types.rb', line 44647 def sampler_search_win_size=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_sampler_search_win_size( self, value) end |
#sampler_track_in_radius ⇒ Float Also known as: get_samplerTrackInRadius
method wrapper for float samplerTrackInRadius
44655 44656 44657 44658 |
# File 'lib/ropencv/ropencv_types.rb', line 44655 def sampler_track_in_radius() __validate_pointer__ Rbind::cv_trackermil_params_get_sampler_track_in_radius( self) end |
#sampler_track_in_radius=(value) ⇒ Void Also known as: set_samplerTrackInRadius
method wrapper for float samplerTrackInRadius
44664 44665 44666 44667 |
# File 'lib/ropencv/ropencv_types.rb', line 44664 def sampler_track_in_radius=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_sampler_track_in_radius( self, value) end |
#sampler_track_max_neg_num ⇒ Fixnum Also known as: get_samplerTrackMaxNegNum
method wrapper for int samplerTrackMaxNegNum
44689 44690 44691 44692 |
# File 'lib/ropencv/ropencv_types.rb', line 44689 def sampler_track_max_neg_num() __validate_pointer__ Rbind::cv_trackermil_params_get_sampler_track_max_neg_num( self) end |
#sampler_track_max_neg_num=(value) ⇒ Void Also known as: set_samplerTrackMaxNegNum
method wrapper for int samplerTrackMaxNegNum
44698 44699 44700 44701 |
# File 'lib/ropencv/ropencv_types.rb', line 44698 def sampler_track_max_neg_num=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_sampler_track_max_neg_num( self, value) end |
#sampler_track_max_pos_num ⇒ Fixnum Also known as: get_samplerTrackMaxPosNum
method wrapper for int samplerTrackMaxPosNum
44672 44673 44674 44675 |
# File 'lib/ropencv/ropencv_types.rb', line 44672 def sampler_track_max_pos_num() __validate_pointer__ Rbind::cv_trackermil_params_get_sampler_track_max_pos_num( self) end |
#sampler_track_max_pos_num=(value) ⇒ Void Also known as: set_samplerTrackMaxPosNum
method wrapper for int samplerTrackMaxPosNum
44681 44682 44683 44684 |
# File 'lib/ropencv/ropencv_types.rb', line 44681 def sampler_track_max_pos_num=(value) __validate_pointer__ Rbind::cv_trackermil_params_set_sampler_track_max_pos_num( self, value) end |
#to_s ⇒ Object
converts Params into a string by crawling through all its attributes
44593 44594 44595 |
# File 'lib/ropencv/ropencv_types.rb', line 44593 def to_s "#<cv::TrackerMIL::Params sampler_init_in_radius=#{self.sampler_init_in_radius} sampler_init_max_neg_num=#{self.sampler_init_max_neg_num} sampler_search_win_size=#{self.sampler_search_win_size} sampler_track_in_radius=#{self.sampler_track_in_radius} sampler_track_max_pos_num=#{self.sampler_track_max_pos_num} sampler_track_max_neg_num=#{self.sampler_track_max_neg_num} feature_set_num_features=#{self.feature_set_num_features}>" end |