Class: CVFFI::STAR::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/opencv-ffi-wrappers/features2d/star.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#kpObject

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

#ptObject



20
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 20

def pt; @kp.pt; end

#responseObject



25
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 25

def response; @kp.response; end

#sizeObject



24
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 24

def size; @kp.size; end

#to_PointObject



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

#xObject



21
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 21

def x;  pt.x; end

#yObject



22
# File 'lib/opencv-ffi-wrappers/features2d/star.rb', line 22

def y;  pt.y; end