repeat
import { repeat } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Fills the output array with repeated copies of the input array.
The function cv::repeat duplicates the input array one or more times along each of the two axes:
\texttt{dst} _{ij}= \texttt{src} _{i\mod src.rows, \; j\mod src.cols }
The second variant of the function is more convenient to use with MatrixExpressions.
See: cv::reduce
repeat(src: Mat, ny: number, nx: number, dst: Mat): void;srcinput array to replicate.
nyFlag to specify how many times the
srcis repeated along the vertical axis.nxFlag to specify how many times the
srcis repeated along the horizontal axis.dstOutput destination, filled by the native operation. output array of the same type as
src.
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.