Skip to content

gapi_concatVert

gapifunctionOpenCV 5.0.0
import { gapi_concatVert } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc1, src2
FUNCTIONgapi_concatVert
RETURN TYPEGMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Applies vertical concatenation to given matrices.

The function vertically concatenates two GMat matrices (with the same number of cols).

    GMat A = { 1, 7,
               2, 8,
               3, 9 };
    GMat B = { 4, 10,
               5, 11,
               6, 12 };

    GMat C = gapi::concatVert(A, B);
    //C:
    //[1, 7;
    // 2, 8;
    // 3, 9;
    // 4, 10;
    // 5, 11;
    // 6, 12]
 

Output matrix must the same number of cols and depth as the src1 and src2, and the sum of rows 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.concatVert"

See: concatHor

gapi_concatVert(src1: GMat, src2: GMat): GMat;
src1

first input matrix to be considered for vertical concatenation.

src2

second input matrix to be considered for vertical concatenation.

Returns

The GMat result. Release returned native handles with using or delete(), including handles nested in results.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.