Class: OpenCV::Cv::Ptr::Cv_SIFT
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_SIFT
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Specializing collapse
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #empty ⇒ Bool
- #get ⇒ Cv::SIFT
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_SIFT into a string by crawling through all its attributes.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
57387 57388 57389 57390 |
# File 'lib/ropencv/ropencv_types.rb', line 57387 def method_missing(m,*args) raise "Ptr cv::Ptr is empty. Cannot call #{m} on it!" if empty get.method(m).call(*args) end |
Class Method Details
.ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object
57191 57192 57193 57194 57195 57196 57197 57198 57199 57200 57201 57202 57203 57204 57205 57206 57207 57208 57209 57210 57211 57212 57213 57214 57215 57216 57217 57218 57219 57220 57221 57222 57223 57224 57225 57226 57227 57228 57229 57230 57231 57232 57233 57234 57235 57236 57237 57238 57239 57240 57241 57242 57243 57244 57245 57246 57247 57248 57249 57250 57251 57252 57253 57254 57255 57256 57257 57258 57259 57260 57261 57262 57263 57264 57265 57266 57267 |
# File 'lib/ropencv/ropencv_types.rb', line 57191 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_SIFTStruct) 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::Ptr<cv::SIFT>::Ptr<cv::SIFT>() @@cv_ptr_cv_sift_ptr_cv_sift_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_sift_ptr_cv_sift_defaults0[i] end begin return Rbind::cv_ptr_cv_sift_ptr_cv_sift(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::SIFT>::Ptr<cv::SIFT>(cv::Ptr<cv::SIFT> other) @@cv_ptr_cv_sift_ptr_cv_sift__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_sift_ptr_cv_sift__2_defaults1[i] end begin return Rbind::cv_ptr_cv_sift_ptr_cv_sift__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::SIFT>::Ptr<cv::SIFT>(cv::Ptr<cv::SIFT> owner, cv::SIFT* p) @@cv_ptr_cv_sift_ptr_cv_sift__3_defaults2 ||= [nil, nil] if(args.size >= 2 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_ptr_cv_sift_ptr_cv_sift__3_defaults2[i] end begin return Rbind::cv_ptr_cv_sift_ptr_cv_sift__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::SIFT>::Ptr<cv::SIFT>(cv::SIFT* p) @@cv_ptr_cv_sift_ptr_cv_sift__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_sift_ptr_cv_sift__4_defaults3[i] end begin return Rbind::cv_ptr_cv_sift_ptr_cv_sift__4(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::SIFT>::Ptr<cv::SIFT>(cv::Ptr<cv::Feature2D> owner, cv::SIFT* p) @@cv_ptr_cv_sift_ptr_cv_sift__5_defaults4 ||= [nil, nil] if(args.size >= 2 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_ptr_cv_sift_ptr_cv_sift__5_defaults4[i] end begin return Rbind::cv_ptr_cv_sift_ptr_cv_sift__5(*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
57172 57173 57174 |
# File 'lib/ropencv/ropencv_types.rb', line 57172 def self.null new(Ptr::Cv_SIFTStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::SIFT::empty()
57379 57380 57381 57382 |
# File 'lib/ropencv/ropencv_types.rb', line 57379 def empty() __validate_pointer__ Rbind::cv_ptr_cv_sift_empty( self) end |
#get ⇒ Cv::SIFT
Note:
method wrapper for cv::SIFT* cv::Ptrcv::SIFT::get()
57367 57368 57369 57370 57371 57372 57373 57374 57375 |
# File 'lib/ropencv/ropencv_types.rb', line 57367 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_sift_get( 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 |
#release ⇒ Void
Note:
method wrapper for void cv::Ptrcv::SIFT::release()
methods
57344 57345 57346 57347 |
# File 'lib/ropencv/ropencv_types.rb', line 57344 def release() __validate_pointer__ Rbind::cv_ptr_cv_sift_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::SIFT::reset(cv::SIFT* p)
57352 57353 57354 57355 |
# File 'lib/ropencv/ropencv_types.rb', line 57352 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_sift_reset( self, p) end |
#swap(other) ⇒ Void
57360 57361 57362 57363 |
# File 'lib/ropencv/ropencv_types.rb', line 57360 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_sift_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_SIFT into a string by crawling through all its attributes
57333 57334 57335 |
# File 'lib/ropencv/ropencv_types.rb', line 57333 def to_s "#<cv::Ptr<cv::SIFT> >" end |