Class: Cv::Scalar
- Inherits:
-
Object
- Object
- Cv::Scalar
- Defined in:
- lib/opencv-ruby/core/scalar.rb
Instance Method Summary collapse
Instance Method Details
#to_a ⇒ Object
3 4 5 |
# File 'lib/opencv-ruby/core/scalar.rb', line 3 def to_a [self[0], self[1], self[2], self[3]] end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/opencv-ruby/core/scalar.rb', line 7 def to_s "<#{self.class.name}:[#{self.to_a.join(",")}]>" end |