D-Alex / ropencv

ffi ruby wrapper for opencv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing shape off Mat

anthonator opened this issue · comments

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>

Looks like size is how you get the shape.