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

View File

@@ -257,5 +257,9 @@ TEST(SoftCascadeTest, detect)
cv::gpu::transpose(rois, trois);
cascade.detectMultiScale(colored, trois, objectBoxes);
typedef cv::gpu::SoftCascade::Detection Detection;
cv::Mat detections(objectBoxes);
ASSERT_EQ(detections.cols / sizeof(Detection) ,3670U);
}
#endif