# 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() 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() what I should use instead or there is something else?

As for the tformarray() 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?