Class: CVFFI::STAR::Result
- Inherits:
-
Object
- Object
- CVFFI::STAR::Result
- Defined in:
- lib/opencv-ffi-wrappers/features2d/star.rb
Instance Attribute Summary collapse
-
#kp ⇒ Object
Returns the value of attribute kp.
Instance Method Summary collapse
-
#initialize(kp) ⇒ Result
constructor
A new instance of Result.
- #pt ⇒ Object
- #response ⇒ Object
- #size ⇒ Object
- #to_Point ⇒ Object
- #to_vector(homogeneous = true) ⇒ Object
- #x ⇒ Object
- #y ⇒ Object
Constructor Details
#initialize(kp) ⇒ Result
Returns a new instance of Result.
16 17 18 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 16 def initialize( kp ) @kp = CVFFI::CvStarKeypoint.new(kp) end |
Instance Attribute Details
#kp ⇒ Object
Returns the value of attribute kp.
15 16 17 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 15 def kp @kp end |
Instance Method Details
#pt ⇒ Object
20 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 20 def pt; @kp.pt; end |
#response ⇒ Object
25 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 25 def response; @kp.response; end |
#size ⇒ Object
24 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 24 def size; @kp.size; end |
#to_Point ⇒ Object
31 32 33 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 31 def to_Point pt.to_Point end |
#to_vector(homogeneous = true) ⇒ Object
27 28 29 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 27 def to_vector( homogeneous = true ) homogeneous ? Vector.[]( x, y, 1 ) : Vector.[](x,y) end |
#x ⇒ Object
21 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 21 def x; pt.x; end |
#y ⇒ Object
22 |
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 22 def y; pt.y; end |