1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fix retrieval of detections count

This commit is contained in:
marina.kolpakova
2012-10-15 17:38:21 +04:00
parent 022a8b9698
commit ca81628a9a
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ namespace icf {
dim3 block(32, 8);
dim3 grid(fw, fh / 8, (scale == -1) ? downscales : 1);
uint* ctr = (uint*)counter.ptr();
uint* ctr = (uint*)(counter.ptr(0));
Detection* det = (Detection*)objects.ptr();
uint max_det = objects.cols / sizeof(Detection);