fixed extra memory allocations.

This commit is contained in:
Anatoly Baksheev
2011-03-30 11:42:23 +00:00
parent 05173022bb
commit 8b8ad17f4a
2 changed files with 71 additions and 60 deletions

View File

@@ -1353,14 +1353,20 @@ namespace cv
GpuMat detector;
// Results of the last classification step
GpuMat labels;
GpuMat labels, labels_buf;
Mat labels_host;
// Results of the last histogram evaluation step
GpuMat block_hists;
GpuMat block_hists, block_hists_buf;
// Gradients conputation results
GpuMat grad, qangle;
GpuMat grad, qangle, grad_buf, qangle_buf;
// returns subbuffer with required size, reallocates buffer if nessesary.
static GpuMat getBuffer(const Size& sz, int type, GpuMat& buf);
static GpuMat getBuffer(int rows, int cols, int type, GpuMat& buf);
std::vector<GpuMat> image_scales;
};