added assertion for small image sizes to SURF_GPU (ticket #1323)

This commit is contained in:
Vladislav Vinogradov
2011-09-05 06:03:49 +00:00
parent 914ed44e28
commit b371bd68df
2 changed files with 26 additions and 15 deletions

View File

@@ -323,7 +323,7 @@ namespace cv { namespace gpu { namespace surf
const int layer_rows = img_rows >> octave;
const int layer_cols = img_cols >> octave;
int min_margin = ((calcSize(octave, 2) >> 1) >> octave) + 1;
const int min_margin = ((calcSize(octave, 2) >> 1) >> octave) + 1;
dim3 threads(16, 16);