Ask Your Question

Revision history [back]

Scale rows and/or cols of Mat

I am using OpenCV 3.0.0 beta and I'm wondering if there is an OpenCV method that scales individual rows and cols, or if there are methods that will help me to do this.

What I am trying to do is a 3D rotation on a 2D image in a Mat by scaling the rows or columns according to a slope. This will give it perspective.

I'm creating the fastest possible algorithms, so speed is key here, and I would prefer to use only OpenCV methods, no Java as Java would slow down the process. I'm not saying that I can't use Java, I'm saying I don't want to use anything intense like loops in Java for the purpose of this project.

Above all: is there an OpenCV method that scales individual rows and cols, or are there methods that will help me to do this?