reintegrate warp shuffle based integral

This commit is contained in:
marina.kolpakova
2012-11-25 03:21:51 +04:00
parent 5460cee9e9
commit 91913364d6
2 changed files with 11 additions and 36 deletions

View File

@@ -361,14 +361,8 @@ namespace cv { namespace gpu { namespace device
{
{
// each thread handles 16 values, use 1 block/row
int block = img.cols / 16;
// save, becouse step is actually can't be less 512 bytes
int align = img.cols % 4;
if ( align != 0)
{
block += (4 - align);
}
int block = integral.cols / 16;
// launch 1 block / row
const int grid = img.rows;