1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Fix for SGBM compute() buffer allocation failure on big images

This commit is contained in:
Vitaly Tuzov
2017-01-24 15:32:32 +03:00
parent 73b5ef48ef
commit 4950f542d1
3 changed files with 37 additions and 3 deletions
@@ -1416,6 +1416,14 @@ public:
*/
void reserve(size_t sz);
/** @brief Reserves space for the certain number of bytes.
The method reserves space for sz bytes. If the matrix already has enough space to store sz bytes,
nothing happens. If matrix has to be reallocated its previous content could be lost.
@param sz Number of bytes.
*/
void reserveBuffer(size_t sz);
/** @brief Changes the number of matrix rows.
The methods change the number of matrix rows. If the matrix is reallocated, the first