Class: OpenCV::Cv::TrackerMIL
- Inherits:
-
Object
- Object
- OpenCV::Cv::TrackerMIL
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Defined Under Namespace
Classes: Params
Class Method Summary collapse
-
.create(parameters = Cv::TrackerMIL::Params.new()) ⇒ Cv::Ptr::Cv_TrackerMIL
methods.
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_tracker(parse_ownership) ⇒ Cv::Tracker (also: #castToTracker)
- #init(image, bounding_box) ⇒ Void
-
#to_s ⇒ Object
converts TrackerMIL into a string by crawling through all its attributes.
- #update(image, bounding_box) ⇒ Bool
Class Method Details
.create(parameters = Cv::TrackerMIL::Params.new()) ⇒ Cv::Ptr::Cv_TrackerMIL
Note:
wrapper for static method const cv::Ptrcv::TrackerMIL cv::TrackerMIL::create(const cv::TrackerMIL::Params parameters = TrackerMIL::Params())
methods
44429 44430 44431 |
# File 'lib/ropencv/ropencv_types.rb', line 44429 def self.create(parameters = Cv::TrackerMIL::Params.new()) Rbind::cv_trackermil_create(parameters) end |
.new(*args) ⇒ Object
44344 44345 44346 44347 44348 44349 44350 44351 |
# File 'lib/ropencv/ropencv_types.rb', line 44344 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TrackerMILStruct) 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
44340 44341 44342 |
# File 'lib/ropencv/ropencv_types.rb', line 44340 def self.null new(TrackerMILStruct.new) end |
Instance Method Details
#cast_to_tracker(parse_ownership) ⇒ Cv::Tracker Also known as: castToTracker
Note:
method wrapper for cv::Tracker* cv::TrackerMIL::castToTracker(bool parse_ownership)
44436 44437 44438 44439 44440 44441 44442 44443 44444 |
# File 'lib/ropencv/ropencv_types.rb', line 44436 def cast_to_tracker(parse_ownership) __validate_pointer__ result = Rbind::cv_trackermil_cast_to_tracker( self, parse_ownership) 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 |
#init(image, bounding_box) ⇒ Void
Note:
method wrapper for void cv::TrackerMIL::init(const cv::Mat image, const cv::Rect boundingBox)
44451 44452 44453 44454 |
# File 'lib/ropencv/ropencv_types.rb', line 44451 def init(image, bounding_box) __validate_pointer__ Rbind::cv_trackermil_init( self, image, bounding_box) end |
#to_s ⇒ Object
converts TrackerMIL into a string by crawling through all its attributes
44417 44418 44419 |
# File 'lib/ropencv/ropencv_types.rb', line 44417 def to_s "#<cv::TrackerMIL >" end |
#update(image, bounding_box) ⇒ Bool
Note:
method wrapper for bool cv::TrackerMIL::update(const cv::Mat image, cv::Rect& boundingBox)
44460 44461 44462 44463 |
# File 'lib/ropencv/ropencv_types.rb', line 44460 def update(image, bounding_box) __validate_pointer__ Rbind::cv_trackermil_update( self, image, bounding_box) end |