Accessing shape off Mat
anthonator opened this issue · comments
Anthony Smith commented
How do you access the shape off of an image?
image = OpenCV.cv.imread('/to/my/file.png')
puts image.shape
The above throws:
undefined method `shape' for #<OpenCV::Cv::Mat:0x007fc4f6c082e0>
Anthony Smith commented
Looks like size
is how you get the shape.