Table of Contents

Method Reserve

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Reserve(int)

Reserves space for the certain number of rows.

The method reserves space for sz rows. If the matrix already has enough space to store sz rows, nothing happens. If the matrix is reallocated, the first Mat::rows rows are preserved. The method emulates the corresponding method of the STL vector class.

public void Reserve(int sz)

Parameters

sz int

Number of rows.