OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Mon, 16 Mar 2015 19:08:29 -0500tformarray matlab function equivalent in opencvhttp://answers.opencv.org/question/57591/tformarray-matlab-function-equivalent-in-opencv/ tmap_B = cat(3,u,v);
resamp = makeresampler('linear','fill');
J2 = tformarray(I,[],resamp,[2 1],[1 2],[],tmap_B,.3);
I want to port the above matlab code to corresponding opencv, where u and v are two 2D matrices. The [cat()](http://se.mathworks.com/help/matlab/ref/cat.html) function corresponds to the concatenate procedure, from a short research I came up with the `hconcat()` and
`vconcat()` but these are for horizontal and vertical concatenation respectively. Is [merge()](http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#merge) what I should use instead or there is something else?
As for the [tformarray()](http://se.mathworks.com/help/images/ref/tformarray.html) corresponds to a spatial transformation to an array A in order to produce an array B. I am trying to figure out which is the equivalent from the opencv transformation functions. Any idea?theodoreMon, 16 Mar 2015 19:08:29 -0500http://answers.opencv.org/question/57591/