merge
import { merge } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Creates one multi-channel array out of several single-channel ones.
The function cv::merge merges several arrays to make a single multi-channel array. That is, each element of the output array will be a concatenation of the elements of the input arrays, where elements of i-th input array are treated as mv[i].channels()-element vectors.
The function cv::split does the reverse operation. If you need to shuffle channels in some other advanced way, use cv::mixChannels.
The following example shows how to merge 3 single channel matrices into a single 3-channel matrix.
See: mixChannels, split, Mat::reshape
merge(mv: MatVector, dst: Mat): void;mvinput vector of matrices to be merged; all the matrices in mv must have the same size and the same depth.
dstOutput destination, filled by the native operation. output array of the same size and the same depth as mv[0]; The number of channels will be the total number of channels in the matrix array.
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.