Class: OpenCV::Cv::FastFeatureDetector
- Inherits:
-
Object
- Object
- OpenCV::Cv::FastFeatureDetector
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Constants collapse
- TYPE_5_8 =
0
- TYPE_7_12 =
1
- TYPE_9_16 =
2
Class Method Summary collapse
- ._create(name) ⇒ Cv::Ptr::Cv_Algorithm
- .cast_from_algorithm(ptr) ⇒ Cv::FeatureDetector (also: castFromAlgorithm)
- .cast_from_feature_detector(ptr) ⇒ Cv::FastFeatureDetector (also: castFromFeatureDetector)
- .create(detector_type) ⇒ Cv::Ptr::Cv_FeatureDetector
- .get_list(algorithms) ⇒ Void (also: getList)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_algorithm ⇒ Cv::Algorithm (also: #castToAlgorithm)
-
#cast_to_feature_detector ⇒ Cv::FeatureDetector
(also: #castToFeatureDetector)
methods.
- #detect(image, keypoints, mask = Cv::Mat.new()) ⇒ Void
- #empty ⇒ Bool
- #get_algorithm(name) ⇒ Cv::Ptr::Cv_Algorithm (also: #getAlgorithm)
- #get_bool(name) ⇒ Bool (also: #getBool)
- #get_double(name) ⇒ Double (also: #getDouble)
- #get_int(name) ⇒ Fixnum (also: #getInt)
- #get_mat(name) ⇒ Cv::Mat (also: #getMat)
- #get_mat_vector(name) ⇒ Std::Vector::Cv_Mat (also: #getMatVector)
- #get_params(names) ⇒ Void (also: #getParams)
- #get_string(name) ⇒ Cv::String (also: #getString)
- #param_help(name) ⇒ Cv::String (also: #paramHelp)
- #param_type(name) ⇒ Fixnum (also: #paramType)
- #set_algorithm(name, value) ⇒ Void (also: #setAlgorithm)
- #set_bool(name, value) ⇒ Void (also: #setBool)
- #set_double(name, value) ⇒ Void (also: #setDouble)
- #set_int(name, value) ⇒ Void (also: #setInt)
- #set_mat(name, value) ⇒ Void (also: #setMat)
- #set_mat_vector(name, value) ⇒ Void (also: #setMatVector)
- #set_string(name, value) ⇒ Void (also: #setString)
-
#to_s ⇒ Object
converts FastFeatureDetector into a string by crawling through all its attributes.
Class Method Details
._create(name) ⇒ Cv::Ptr::Cv_Algorithm
wrapper for static method cv::Ptrcv::Algorithm cv::FastFeatureDetector::_create(const cv::String name)
22720 22721 22722 |
# File 'lib/ropencv/ropencv_types.rb', line 22720 def self._create(name) Rbind::cv_fast_feature_detector__create(name) end |
.cast_from_algorithm(ptr) ⇒ Cv::FeatureDetector Also known as: castFromAlgorithm
wrapper for static method cv::FeatureDetector* cv::FastFeatureDetector::castFromAlgorithm(cv::Algorithm* ptr)
22519 22520 22521 |
# File 'lib/ropencv/ropencv_types.rb', line 22519 def self.cast_from_algorithm(ptr) Rbind::cv_fast_feature_detector_cast_from_algorithm(ptr) end |
.cast_from_feature_detector(ptr) ⇒ Cv::FastFeatureDetector Also known as: castFromFeatureDetector
wrapper for static method cv::FastFeatureDetector* cv::FastFeatureDetector::castFromFeatureDetector(cv::FeatureDetector* ptr)
22474 22475 22476 |
# File 'lib/ropencv/ropencv_types.rb', line 22474 def self.cast_from_feature_detector(ptr) Rbind::cv_fast_feature_detector_cast_from_feature_detector(ptr) end |
.create(detector_type) ⇒ Cv::Ptr::Cv_FeatureDetector
wrapper for static method cv::Ptrcv::FeatureDetector cv::FastFeatureDetector::create(const cv::String detectorType)
22499 22500 22501 |
# File 'lib/ropencv/ropencv_types.rb', line 22499 def self.create(detector_type) Rbind::cv_fast_feature_detector_create(detector_type) end |
.get_list(algorithms) ⇒ Void Also known as: getList
wrapper for static method void cv::FastFeatureDetector::getList(std::vectorcv::String& algorithms)
22712 22713 22714 |
# File 'lib/ropencv/ropencv_types.rb', line 22712 def self.get_list(algorithms) Rbind::cv_fast_feature_detector_get_list(algorithms) end |
.new(*args) ⇒ Object
22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 |
# File 'lib/ropencv/ropencv_types.rb', line 22360 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(FastFeatureDetectorStruct) 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::FastFeatureDetector::FastFeatureDetector(int threshold = 10, bool nonmaxSuppression = true) @@cv_fast_feature_detector_fast_feature_detector_defaults0 ||= [10, true] if(args.size >= 0 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_fast_feature_detector_fast_feature_detector_defaults0[i] end begin return Rbind::cv_fast_feature_detector_fast_feature_detector(*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
22354 22355 22356 |
# File 'lib/ropencv/ropencv_types.rb', line 22354 def self.null new(FastFeatureDetectorStruct.new) end |
Instance Method Details
#cast_to_algorithm ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::FastFeatureDetector::castToAlgorithm()
22505 22506 22507 22508 22509 22510 22511 22512 22513 |
# File 'lib/ropencv/ropencv_types.rb', line 22505 def cast_to_algorithm() __validate_pointer__ result = Rbind::cv_fast_feature_detector_cast_to_algorithm( self) 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 |
#cast_to_feature_detector ⇒ Cv::FeatureDetector Also known as: castToFeatureDetector
method wrapper for cv::FeatureDetector* cv::FastFeatureDetector::castToFeatureDetector()
methods
22460 22461 22462 22463 22464 22465 22466 22467 22468 |
# File 'lib/ropencv/ropencv_types.rb', line 22460 def cast_to_feature_detector() __validate_pointer__ result = Rbind::cv_fast_feature_detector_cast_to_feature_detector( self) 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 |
#detect(image, keypoints, mask = Cv::Mat.new()) ⇒ Void
method wrapper for void cv::FastFeatureDetector::detect(const cv::Mat image, std::vectorcv::KeyPoint& keypoints, const cv::Mat mask = Mat())
22484 22485 22486 22487 |
# File 'lib/ropencv/ropencv_types.rb', line 22484 def detect(image, keypoints, mask = Cv::Mat.new()) __validate_pointer__ Rbind::cv_fast_feature_detector_detect( self, image, keypoints, mask) end |
#empty ⇒ Bool
method wrapper for bool cv::FastFeatureDetector::empty()
22491 22492 22493 22494 |
# File 'lib/ropencv/ropencv_types.rb', line 22491 def empty() __validate_pointer__ Rbind::cv_fast_feature_detector_empty( self) end |
#get_algorithm(name) ⇒ Cv::Ptr::Cv_Algorithm Also known as: getAlgorithm
method wrapper for cv::Ptrcv::Algorithm cv::FastFeatureDetector::getAlgorithm(const cv::String name)
22596 22597 22598 22599 22600 22601 22602 22603 22604 |
# File 'lib/ropencv/ropencv_types.rb', line 22596 def get_algorithm(name) __validate_pointer__ result = Rbind::cv_fast_feature_detector_get_algorithm( self, name) 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 |
#get_bool(name) ⇒ Bool Also known as: getBool
method wrapper for bool cv::FastFeatureDetector::getBool(const cv::String name)
22545 22546 22547 22548 |
# File 'lib/ropencv/ropencv_types.rb', line 22545 def get_bool(name) __validate_pointer__ Rbind::cv_fast_feature_detector_get_bool( self, name) end |
#get_double(name) ⇒ Double Also known as: getDouble
method wrapper for double cv::FastFeatureDetector::getDouble(const cv::String name)
22536 22537 22538 22539 |
# File 'lib/ropencv/ropencv_types.rb', line 22536 def get_double(name) __validate_pointer__ Rbind::cv_fast_feature_detector_get_double( self, name) end |
#get_int(name) ⇒ Fixnum Also known as: getInt
method wrapper for int cv::FastFeatureDetector::getInt(const cv::String name)
22527 22528 22529 22530 |
# File 'lib/ropencv/ropencv_types.rb', line 22527 def get_int(name) __validate_pointer__ Rbind::cv_fast_feature_detector_get_int( self, name) end |
#get_mat(name) ⇒ Cv::Mat Also known as: getMat
method wrapper for cv::Mat cv::FastFeatureDetector::getMat(const cv::String name)
22568 22569 22570 22571 22572 22573 22574 22575 22576 |
# File 'lib/ropencv/ropencv_types.rb', line 22568 def get_mat(name) __validate_pointer__ result = Rbind::cv_fast_feature_detector_get_mat( self, name) 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 |
#get_mat_vector(name) ⇒ Std::Vector::Cv_Mat Also known as: getMatVector
method wrapper for std::vectorcv::Mat cv::FastFeatureDetector::getMatVector(const cv::String name)
22582 22583 22584 22585 22586 22587 22588 22589 22590 |
# File 'lib/ropencv/ropencv_types.rb', line 22582 def get_mat_vector(name) __validate_pointer__ result = Rbind::cv_fast_feature_detector_get_mat_vector( self, name) 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 |
#get_params(names) ⇒ Void Also known as: getParams
method wrapper for void cv::FastFeatureDetector::getParams(std::vectorcv::String& names)
22703 22704 22705 22706 |
# File 'lib/ropencv/ropencv_types.rb', line 22703 def get_params(names) __validate_pointer__ Rbind::cv_fast_feature_detector_get_params( self, names) end |
#get_string(name) ⇒ Cv::String Also known as: getString
method wrapper for cv::String cv::FastFeatureDetector::getString(const cv::String name)
22554 22555 22556 22557 22558 22559 22560 22561 22562 |
# File 'lib/ropencv/ropencv_types.rb', line 22554 def get_string(name) __validate_pointer__ result = Rbind::cv_fast_feature_detector_get_string( self, name) 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 |
#param_help(name) ⇒ Cv::String Also known as: paramHelp
method wrapper for cv::String cv::FastFeatureDetector::paramHelp(const cv::String name)
22680 22681 22682 22683 22684 22685 22686 22687 22688 |
# File 'lib/ropencv/ropencv_types.rb', line 22680 def param_help(name) __validate_pointer__ result = Rbind::cv_fast_feature_detector_param_help( self, name) 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 |
#param_type(name) ⇒ Fixnum Also known as: paramType
method wrapper for int cv::FastFeatureDetector::paramType(const cv::String name)
22694 22695 22696 22697 |
# File 'lib/ropencv/ropencv_types.rb', line 22694 def param_type(name) __validate_pointer__ Rbind::cv_fast_feature_detector_param_type( self, name) end |
#set_algorithm(name, value) ⇒ Void Also known as: setAlgorithm
method wrapper for void cv::FastFeatureDetector::setAlgorithm(const cv::String name, const cv::Ptrcv::Algorithm value)
22671 22672 22673 22674 |
# File 'lib/ropencv/ropencv_types.rb', line 22671 def set_algorithm(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_algorithm( self, name, value) end |
#set_bool(name, value) ⇒ Void Also known as: setBool
method wrapper for void cv::FastFeatureDetector::setBool(const cv::String name, bool value)
22631 22632 22633 22634 |
# File 'lib/ropencv/ropencv_types.rb', line 22631 def set_bool(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_bool( self, name, value) end |
#set_double(name, value) ⇒ Void Also known as: setDouble
method wrapper for void cv::FastFeatureDetector::setDouble(const cv::String name, double value)
22621 22622 22623 22624 |
# File 'lib/ropencv/ropencv_types.rb', line 22621 def set_double(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_double( self, name, value) end |
#set_int(name, value) ⇒ Void Also known as: setInt
method wrapper for void cv::FastFeatureDetector::setInt(const cv::String name, int value)
22611 22612 22613 22614 |
# File 'lib/ropencv/ropencv_types.rb', line 22611 def set_int(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_int( self, name, value) end |
#set_mat(name, value) ⇒ Void Also known as: setMat
method wrapper for void cv::FastFeatureDetector::setMat(const cv::String name, const cv::Mat value)
22651 22652 22653 22654 |
# File 'lib/ropencv/ropencv_types.rb', line 22651 def set_mat(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_mat( self, name, value) end |
#set_mat_vector(name, value) ⇒ Void Also known as: setMatVector
method wrapper for void cv::FastFeatureDetector::setMatVector(const cv::String name, const std::vectorcv::Mat value)
22661 22662 22663 22664 |
# File 'lib/ropencv/ropencv_types.rb', line 22661 def set_mat_vector(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_mat_vector( self, name, value) end |
#set_string(name, value) ⇒ Void Also known as: setString
method wrapper for void cv::FastFeatureDetector::setString(const cv::String name, const cv::String value)
22641 22642 22643 22644 |
# File 'lib/ropencv/ropencv_types.rb', line 22641 def set_string(name, value) __validate_pointer__ Rbind::cv_fast_feature_detector_set_string( self, name, value) end |
#to_s ⇒ Object
converts FastFeatureDetector into a string by crawling through all its attributes
22446 22447 22448 |
# File 'lib/ropencv/ropencv_types.rb', line 22446 def to_s "#<cv::FastFeatureDetector >" end |