 
     // Run the kernel
     int n = 16;
-    dim3 dimBlock(source.width/n, source.height/n - 20);
+    dim3 dimBlock(source.width/n, 1);
     dim3 dimGrid(n, n);
     filter<<<dimBlock, dimGrid>>>(devGrayScale, devFiltered, filtered.width, filtered.height);
 

#include <stdio.h>
#define CHECK(e) { int res = (e); if (res) printf("CUDA ERROR %d\n", res); }

/*#define THRESH -1*/
#define THRESH 10000
/*#define WARP_SIZE 32*/

texture<unsigned char, 2> imageTex;


 * TODO List
 *
 * - Resize image to test for speed
 * - Think how this can work for images of any size
 * - Think about bank collisions
 * - Refactor the code
