hconcat
import { hconcat } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc, dst
FUNCTIONhconcat
RETURN TYPEvoid
std::vector<cv::Mat> matrices = { cv::Mat(4, 1, CV_8UC1, cv::Scalar(1)),
cv::Mat(4, 1, CV_8UC1, cv::Scalar(2)),
cv::Mat(4, 1, CV_8UC1, cv::Scalar(3)),};
cv::Mat out;
cv::hconcat( matrices, out );
//out:
//[1, 2, 3;
// 1, 2, 3;
// 1, 2, 3;
// 1, 2, 3]
hconcat(src: MatVector, dst: Mat): void;srcinput array or vector of matrices. all of the matrices must have the same number of rows and the same depth.
dstOutput destination, filled by the native operation. output array. It has the same number of rows and depth as the src, and the sum of cols 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.