Skip to content

vconcat

Core and matricesfunctionOpenCV 5.0.0
import { vconcat } from '@banou/opencv-wasm'

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

ARGUMENTSsrc, dst
FUNCTIONvconcat
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.
    std::vector<cv::Mat> matrices = { cv::Mat(1, 4, CV_8UC1, cv::Scalar(1)),
                                      cv::Mat(1, 4, CV_8UC1, cv::Scalar(2)),
                                      cv::Mat(1, 4, CV_8UC1, cv::Scalar(3)),};

    cv::Mat out;
    cv::vconcat( matrices, out );
    //out:
    //[1,   1,   1,   1;
    // 2,   2,   2,   2;
    // 3,   3,   3,   3]
 
vconcat(src: MatVector, dst: Mat): void;
src

input array or vector of matrices. all of the matrices must have the same number of cols and the same depth

dst

Output destination, filled by the native operation. output array. It has the same number of cols and depth as the src, and the sum of rows of the src. same depth.

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.