mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Fixed serious kernel crash IN StereoBM_GPU for some parameter. Will more rework for the code farther.
This commit is contained in:
parent
fcdce4edcb
commit
ec4d2b6bb9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user