added remap test, fix compilation error

This commit is contained in:
Vladislav Vinogradov
2011-08-10 12:05:24 +00:00
parent 7f1995f19a
commit bad7dadb75
2 changed files with 58 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ namespace cv { namespace gpu { namespace imgproc
grid.x = divUp(dst.cols, threads.x);
grid.y = divUp(dst.rows, threads.y);
TextureBinder tex_remap(&tex_remap, src);
TextureBinder tex(&tex_remap, src);
remap_1c<<<grid, threads>>>(xmap.data, ymap.data, xmap.step, dst.data, dst.step, dst.cols, dst.rows);
cudaSafeCall( cudaGetLastError() );