added support of old CC into GPU mean shift routines

This commit is contained in:
Alexey Spizhevoy
2011-07-08 13:59:23 +00:00
parent b50428bf65
commit e9837b0aa9
4 changed files with 7 additions and 11 deletions

View File

@@ -251,9 +251,11 @@ namespace cv { namespace gpu { namespace imgproc
}
extern "C" void meanShiftFiltering_gpu(const DevMem2D& src, DevMem2D dst, int sp, int sr, int maxIter, float eps)
{
{
printFuncAttrib(meanshift_kernel);
dim3 grid(1, 1, 1);
dim3 threads(32, 16, 1);
dim3 threads(32, 8, 1);
grid.x = divUp(src.cols, threads.x);
grid.y = divUp(src.rows, threads.y);
@@ -269,7 +271,7 @@ namespace cv { namespace gpu { namespace imgproc
extern "C" void meanShiftProc_gpu(const DevMem2D& src, DevMem2D dstr, DevMem2D dstsp, int sp, int sr, int maxIter, float eps)
{
dim3 grid(1, 1, 1);
dim3 threads(32, 16, 1);
dim3 threads(32, 8, 1);
grid.x = divUp(src.cols, threads.x);
grid.y = divUp(src.rows, threads.y);