Skip to content

repeat

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

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

ARGUMENTSsrc, ny, nx, dst
FUNCTIONrepeat
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
src

input array to replicate.

ny

Flag to specify how many times the src is repeated along the vertical axis.

nx

Flag to specify how many times the src is repeated along the horizontal axis.

dst

Output 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.