Fixed serious kernel crash IN StereoBM_GPU for some parameter. Will more rework for the code farther.

This commit is contained in:
Anatoly Baksheev 2010-12-11 15:07:14 +00:00
parent fcdce4edcb
commit ec4d2b6bb9

View File

@ -252,7 +252,7 @@ __global__ void stereoKernel(unsigned char *left, unsigned char *right, size_t i
for(uint *ptr = minSSDImage; ptr != minSSDImage_end; ptr += minssd_step )
*ptr = 0xFFFFFFFF;
}*/
int end_row = min(ROWSperTHREAD, cheight - Y);
int end_row = min(ROWSperTHREAD, cheight - Y - RADIUS);
int y_tex;
int x_tex = X - RADIUS;