Class: CVFFI::STAR::Params
- Inherits:
-
Object
- Object
- CVFFI::STAR::Params
- Defined in:
- lib/opencv-ffi-wrappers/features2d/star.rb
Constant Summary collapse
- DEFAULTS =
{ maxSize: 45, responseThreshold: 30, lineThresholdProjected: 10, lineThresholdBinarized: 8, suppressNonmaxSize: 5 }
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Params
constructor
A new instance of Params.
- #to_CvStarDetectorParams ⇒ Object
- #to_hash ⇒ Object
Constructor Details
Instance Method Details
#to_CvStarDetectorParams ⇒ Object
88 89 90 91 92 93 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 88 def to_CvStarDetectorParams par = @params par.delete_if { |k,v| DEFAULTS.keys.include? k == false } p par CVFFI::CvStarDetectorParams.new( par ) end |
#to_hash ⇒ Object
95 96 97 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 95 def to_hash @params end |