Function opencv::gapi::concat_hor
source · pub fn concat_hor(src1: &GMat, src2: &GMat) -> Result<GMat>
Expand description
Applies horizontal concatenation to given matrices.
The function horizontally concatenates two GMat matrices (with the same number of rows).
GMat A = { 1, 4,
2, 5,
3, 6 };
GMat B = { 7, 10,
8, 11,
9, 12 };
GMat C = gapi::concatHor(A, B);
//C:
//[1, 4, 7, 10;
// 2, 5, 8, 11;
// 3, 6, 9, 12]
Output matrix must the same number of rows and depth as the src1 and src2, and the sum of cols of the src1 and src2. Supported matrix data types are [CV_8UC1], [CV_8UC3], [CV_16UC1], [CV_16SC1], [CV_32FC1].
Note: Function textual ID is “org.opencv.imgproc.transform.concatHor”
Parameters
- src1: first input matrix to be considered for horizontal concatenation.
- src2: second input matrix to be considered for horizontal concatenation.
See also
concatVert