I'm trying to translate the code in the end of that page from python to C++. I'm stuck at this line:
image.transform(image.size, Image.AFFINE, (a,b,c,d,e,f), resample=resample);
Apparently I will have to use
void cv::transform(InputArray src, OutputArray dst, InputArray m)
which expects "a transformation 2x2 or 2x3 floating-point matrix" as a m. I reckon that I have to put the (a,b,c,d,e,f) part of the python code therein, but how exactly? what would be the format of the required 2x3 matrix in terms of the above elements?