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
- THRESHOLD =
10000
- NONMAX_SUPPRESSION =
10001
- FAST_N =
10002
Class Method Summary collapse
-
.create(threshold = 10, nonmax_suppression = true, type = :TYPE_9_16) ⇒ Cv::Ptr::Cv_FastFeatureDetector
methods.
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #cast_to_feature2d(parse_ownership) ⇒ Cv::Feature2D (also: #castToFeature2D)
- #clear ⇒ Void
- #compute(*args) ⇒ Object
- #default_norm ⇒ Fixnum (also: #defaultNorm)
- #descriptor_size ⇒ Fixnum (also: #descriptorSize)
- #descriptor_type ⇒ Fixnum (also: #descriptorType)
- #detect(*args) ⇒ Object
- #detect_and_compute(image, mask, keypoints, descriptors, use_provided_keypoints = false) ⇒ Void (also: #detectAndCompute)
- #empty ⇒ Bool
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_nonmax_suppression ⇒ Bool (also: #getNonmaxSuppression)
- #get_threshold ⇒ Fixnum (also: #getThreshold)
- #get_type ⇒ Cv::FastFeatureDetector::DetectorType (also: #getType)
- #read(*args) ⇒ Object
- #save(filename) ⇒ Void
- #set_nonmax_suppression(f) ⇒ Void (also: #setNonmaxSuppression)
- #set_threshold(threshold) ⇒ Void (also: #setThreshold)
- #set_type(type) ⇒ Void (also: #setType)
-
#to_s ⇒ Object
converts FastFeatureDetector into a string by crawling through all its attributes.
- #write(*args) ⇒ Object
Class Method Details
.create(threshold = 10, nonmax_suppression = true, type = :TYPE_9_16) ⇒ Cv::Ptr::Cv_FastFeatureDetector
wrapper for static method const cv::Ptrcv::FastFeatureDetector cv::FastFeatureDetector::create(int threshold = 10, bool nonmaxSuppression = true, cv::FastFeatureDetector::DetectorType type = FastFeatureDetector::TYPE_9_16)
methods
59880 59881 59882 |
# File 'lib/ropencv/ropencv_types.rb', line 59880 def self.create(threshold = 10, nonmax_suppression = true, type = :TYPE_9_16) Rbind::cv_fast_feature_detector_create(threshold, nonmax_suppression, type) end |
.new(*args) ⇒ Object
59787 59788 59789 59790 59791 59792 59793 59794 |
# File 'lib/ropencv/ropencv_types.rb', line 59787 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 raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
59783 59784 59785 |
# File 'lib/ropencv/ropencv_types.rb', line 59783 def self.null new(FastFeatureDetectorStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::FastFeatureDetector::castToAlgorithm(bool parse_ownership)
60182 60183 60184 60185 60186 60187 60188 60189 60190 |
# File 'lib/ropencv/ropencv_types.rb', line 60182 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_fast_feature_detector_cast_to_algorithm( 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 |
#cast_to_feature2d(parse_ownership) ⇒ Cv::Feature2D Also known as: castToFeature2D
method wrapper for cv::Feature2D* cv::FastFeatureDetector::castToFeature2D(bool parse_ownership)
59951 59952 59953 59954 59955 59956 59957 59958 59959 |
# File 'lib/ropencv/ropencv_types.rb', line 59951 def cast_to_feature2d(parse_ownership) __validate_pointer__ result = Rbind::cv_fast_feature_detector_cast_to_feature2d( 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 |
#clear ⇒ Void
method wrapper for void cv::FastFeatureDetector::clear()
60195 60196 60197 60198 |
# File 'lib/ropencv/ropencv_types.rb', line 60195 def clear() __validate_pointer__ Rbind::cv_fast_feature_detector_clear( self) end |
#compute(image, keypoints, descriptors) ⇒ Void #compute(images, keypoints, descriptors) ⇒ Void
wrapper for overloaded method compute
60019 60020 60021 60022 60023 60024 60025 60026 60027 60028 60029 60030 60031 60032 60033 60034 60035 60036 60037 60038 60039 60040 60041 60042 60043 60044 60045 60046 60047 60048 60049 60050 |
# File 'lib/ropencv/ropencv_types.rb', line 60019 def compute(*args) __validate_pointer__ # overloaded method wrapper for void cv::FastFeatureDetector::compute(const cv::Mat image, std::vector<cv::KeyPoint>& keypoints, cv::Mat& descriptors) @@cv_fast_feature_detector_compute_defaults0 ||= [nil, nil, nil] if(args.size >= 3 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_fast_feature_detector_compute_defaults0[i] end begin return Rbind::cv_fast_feature_detector_compute(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::FastFeatureDetector::compute(const std::vector<cv::Mat> images, std::vector<std::vector<cv::KeyPoint> >& keypoints, std::vector<cv::Mat>& descriptors) @@cv_fast_feature_detector_compute__2_defaults1 ||= [nil, nil, nil] if(args.size >= 3 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_fast_feature_detector_compute__2_defaults1[i] end begin return Rbind::cv_fast_feature_detector_compute__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |
#default_norm ⇒ Fixnum Also known as: defaultNorm
method wrapper for int cv::FastFeatureDetector::defaultNorm()
60083 60084 60085 60086 |
# File 'lib/ropencv/ropencv_types.rb', line 60083 def default_norm() __validate_pointer__ Rbind::cv_fast_feature_detector_default_norm( self) end |
#descriptor_size ⇒ Fixnum Also known as: descriptorSize
method wrapper for int cv::FastFeatureDetector::descriptorSize()
60067 60068 60069 60070 |
# File 'lib/ropencv/ropencv_types.rb', line 60067 def descriptor_size() __validate_pointer__ Rbind::cv_fast_feature_detector_descriptor_size( self) end |
#descriptor_type ⇒ Fixnum Also known as: descriptorType
method wrapper for int cv::FastFeatureDetector::descriptorType()
60075 60076 60077 60078 |
# File 'lib/ropencv/ropencv_types.rb', line 60075 def descriptor_type() __validate_pointer__ Rbind::cv_fast_feature_detector_descriptor_type( self) end |
#detect(image, keypoints, mask = Cv::Mat.new()) ⇒ Void #detect(images, keypoints, masks = Std::Vector::Cv_Mat.new()) ⇒ Void
wrapper for overloaded method detect
59974 59975 59976 59977 59978 59979 59980 59981 59982 59983 59984 59985 59986 59987 59988 59989 59990 59991 59992 59993 59994 59995 59996 59997 59998 59999 60000 60001 60002 60003 60004 60005 |
# File 'lib/ropencv/ropencv_types.rb', line 59974 def detect(*args) __validate_pointer__ # overloaded method wrapper for void cv::FastFeatureDetector::detect(const cv::Mat image, std::vector<cv::KeyPoint>& keypoints, const cv::Mat mask = Mat()) @@cv_fast_feature_detector_detect_defaults0 ||= [nil, nil, Cv::Mat.new()] if(args.size >= 2 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_fast_feature_detector_detect_defaults0[i] end begin return Rbind::cv_fast_feature_detector_detect(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::FastFeatureDetector::detect(const std::vector<cv::Mat> images, std::vector<std::vector<cv::KeyPoint> >& keypoints, const std::vector<cv::Mat> masks = vector<Mat>()) @@cv_fast_feature_detector_detect__2_defaults1 ||= [nil, nil, Std::Vector::Cv_Mat.new()] if(args.size >= 2 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_fast_feature_detector_detect__2_defaults1[i] end begin return Rbind::cv_fast_feature_detector_detect__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |
#detect_and_compute(image, mask, keypoints, descriptors, use_provided_keypoints = false) ⇒ Void Also known as: detectAndCompute
method wrapper for void cv::FastFeatureDetector::detectAndCompute(const cv::Mat image, const cv::Mat mask, std::vectorcv::KeyPoint& keypoints, cv::Mat& descriptors, bool useProvidedKeypoints = false)
60059 60060 60061 60062 |
# File 'lib/ropencv/ropencv_types.rb', line 60059 def detect_and_compute(image, mask, keypoints, descriptors, use_provided_keypoints = false) __validate_pointer__ Rbind::cv_fast_feature_detector_detect_and_compute( self, image, mask, keypoints, descriptors, use_provided_keypoints) end |
#empty ⇒ Bool
method wrapper for bool cv::FastFeatureDetector::empty()
60174 60175 60176 60177 |
# File 'lib/ropencv/ropencv_types.rb', line 60174 def empty() __validate_pointer__ Rbind::cv_fast_feature_detector_empty( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::FastFeatureDetector::getDefaultName()
59937 59938 59939 59940 59941 59942 59943 59944 59945 |
# File 'lib/ropencv/ropencv_types.rb', line 59937 def get_default_name() __validate_pointer__ result = Rbind::cv_fast_feature_detector_get_default_name( 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 |
#get_nonmax_suppression ⇒ Bool Also known as: getNonmaxSuppression
method wrapper for bool cv::FastFeatureDetector::getNonmaxSuppression()
59912 59913 59914 59915 |
# File 'lib/ropencv/ropencv_types.rb', line 59912 def get_nonmax_suppression() __validate_pointer__ Rbind::cv_fast_feature_detector_get_nonmax_suppression( self) end |
#get_threshold ⇒ Fixnum Also known as: getThreshold
method wrapper for int cv::FastFeatureDetector::getThreshold()
59895 59896 59897 59898 |
# File 'lib/ropencv/ropencv_types.rb', line 59895 def get_threshold() __validate_pointer__ Rbind::cv_fast_feature_detector_get_threshold( self) end |
#get_type ⇒ Cv::FastFeatureDetector::DetectorType Also known as: getType
method wrapper for cv::FastFeatureDetector::DetectorType cv::FastFeatureDetector::getType()
59929 59930 59931 59932 |
# File 'lib/ropencv/ropencv_types.rb', line 59929 def get_type() __validate_pointer__ Rbind::cv_fast_feature_detector_get_type( self) end |
#read(file_name) ⇒ Void #read(_arg1) ⇒ Void
wrapper for overloaded method read
60139 60140 60141 60142 60143 60144 60145 60146 60147 60148 60149 60150 60151 60152 60153 60154 60155 60156 60157 60158 60159 60160 60161 60162 60163 60164 60165 60166 60167 60168 60169 60170 |
# File 'lib/ropencv/ropencv_types.rb', line 60139 def read(*args) __validate_pointer__ # overloaded method wrapper for void cv::FastFeatureDetector::read(const std::string fileName) @@cv_fast_feature_detector_read_defaults0 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_fast_feature_detector_read_defaults0[i] end begin return Rbind::cv_fast_feature_detector_read(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::FastFeatureDetector::read(const cv::FileNode arg1) @@cv_fast_feature_detector_read__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_fast_feature_detector_read__2_defaults1[i] end begin return Rbind::cv_fast_feature_detector_read__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |
#save(filename) ⇒ Void
method wrapper for void cv::FastFeatureDetector::save(const std::string filename)
60203 60204 60205 60206 |
# File 'lib/ropencv/ropencv_types.rb', line 60203 def save(filename) __validate_pointer__ Rbind::cv_fast_feature_detector_save( self, filename) end |
#set_nonmax_suppression(f) ⇒ Void Also known as: setNonmaxSuppression
method wrapper for void cv::FastFeatureDetector::setNonmaxSuppression(bool f)
59904 59905 59906 59907 |
# File 'lib/ropencv/ropencv_types.rb', line 59904 def set_nonmax_suppression(f) __validate_pointer__ Rbind::cv_fast_feature_detector_set_nonmax_suppression( self, f) end |
#set_threshold(threshold) ⇒ Void Also known as: setThreshold
method wrapper for void cv::FastFeatureDetector::setThreshold(int threshold)
59887 59888 59889 59890 |
# File 'lib/ropencv/ropencv_types.rb', line 59887 def set_threshold(threshold) __validate_pointer__ Rbind::cv_fast_feature_detector_set_threshold( self, threshold) end |
#set_type(type) ⇒ Void Also known as: setType
method wrapper for void cv::FastFeatureDetector::setType(cv::FastFeatureDetector::DetectorType type)
59921 59922 59923 59924 |
# File 'lib/ropencv/ropencv_types.rb', line 59921 def set_type(type) __validate_pointer__ Rbind::cv_fast_feature_detector_set_type( self, type) end |
#to_s ⇒ Object
converts FastFeatureDetector into a string by crawling through all its attributes
59860 59861 59862 |
# File 'lib/ropencv/ropencv_types.rb', line 59860 def to_s "#<cv::FastFeatureDetector >" end |
#write(file_name) ⇒ Void #write(fs, name = Std::String.new()) ⇒ Void
wrapper for overloaded method write
60098 60099 60100 60101 60102 60103 60104 60105 60106 60107 60108 60109 60110 60111 60112 60113 60114 60115 60116 60117 60118 60119 60120 60121 60122 60123 60124 60125 60126 60127 60128 60129 |
# File 'lib/ropencv/ropencv_types.rb', line 60098 def write(*args) __validate_pointer__ # overloaded method wrapper for void cv::FastFeatureDetector::write(const std::string fileName) @@cv_fast_feature_detector_write_defaults0 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_fast_feature_detector_write_defaults0[i] end begin return Rbind::cv_fast_feature_detector_write(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::FastFeatureDetector::write(const cv::Ptr<cv::FileStorage> fs, const std::string name = String()) @@cv_fast_feature_detector_write__2_defaults1 ||= [nil, Std::String.new()] if(args.size >= 1 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_fast_feature_detector_write__2_defaults1[i] end begin return Rbind::cv_fast_feature_detector_write__2(self,*targs) rescue TypeError => e @error = e end end raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}" end |