I’m using ruby-opencv to do some image processing. I have an IplImage object that I need to resize. Calling the resize method on that object returns a CvMat object. How do I convert that CvMat object into an IplImage object? Alternatively, is there another way to resize the image?
I’m using ruby-opencv to do some image processing. I have an IplImage object that
Share
The problem is with the ruby-opencv wrapper. The resize method in CvMat (from which IplImage is inherited in the C++ library) was incorrectly determining the type of the Ruby class to return (i.e., it was returning CvMat instead of IplImage when resize was called on an IplImage). This has been fixed in recent forks of ruby-opencv. For example: https://github.com/ser1zw/ruby-opencv