Module: OpenCV::Cv::Vecxd
Instance Method Summary collapse
Instance Method Details
#[](i) ⇒ Object
138 139 140 141 |
# File 'lib/ropencv/ropencv_ruby.rb', line 138 def [](i) raise "Out of bound #{i}" if i < 0 || i >= self.class::SIZE val.get_float64(i*8) end |
#[]=(i, val0) ⇒ Object
142 143 144 145 |
# File 'lib/ropencv/ropencv_ruby.rb', line 142 def []=(i,val0) raise "Out of bound #{i}" if i < 0 || i >= self.class::SIZE val.put_float64(i*8,val0) end |
#to_a ⇒ Object
146 147 148 |
# File 'lib/ropencv/ropencv_ruby.rb', line 146 def to_a val.get_array_of_float64(0,self.class::SIZE) end |