opencv::core

Function repeat

Source
pub fn repeat(src: &impl MatTraitConst, ny: i32, nx: i32) -> Result<Mat>
Expand description

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: block formula The second variant of the function is more convenient to use with [MatrixExpressions].

§Parameters

  • 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 array of the same type as src.

§See also

cv::reduce

§Overloaded parameters

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