now single row GPU matrix is continuous one, added aux. functions, updated dft and matchTemplates

This commit is contained in:
Alexey Spizhevoy
2010-12-24 09:26:19 +00:00
parent 54fcdf4cae
commit 21b081deff
6 changed files with 72 additions and 102 deletions

View File

@@ -246,6 +246,9 @@ namespace cv
#include "GpuMat_BetaDeprecated.hpp"
#endif
//! creates continuous GPU matrix
CV_EXPORTS void createContinuous(int rows, int cols, int type, GpuMat& m);
//////////////////////////////// CudaMem ////////////////////////////////
// CudaMem is limited cv::Mat with page locked memory allocation.
// Page locked memory is only needed for async and faster coping to GPU.

View File

@@ -345,6 +345,26 @@ inline GpuMat GpuMat::t() const
static inline void swap( GpuMat& a, GpuMat& b ) { a.swap(b); }
inline GpuMat createContinuous(int rows, int cols, int type)
{
GpuMat m;
createContinuous(rows, cols, type, m);
return m;
}
inline void createContinuous(Size size, int type, GpuMat& m)
{
createContinuous(size.height, size.width, type, m);
}
inline GpuMat createContinuous(Size size, int type)
{
GpuMat m;
createContinuous(size, type, m);
return m;
}
///////////////////////////////////////////////////////////////////////
//////////////////////////////// CudaMem ////////////////////////////////