Class: Cv::Scalar

Inherits:
Object
  • Object
show all
Defined in:
lib/opencv-ruby/core/scalar.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



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_sObject



7
8
9
# File 'lib/opencv-ruby/core/scalar.rb', line 7

def to_s
  "<#{self.class.name}:[#{self.to_a.join(",")}]>"
end