fixed meanShiftSegmentation test in gpu module

This commit is contained in:
Alexey Spizhevoy 2010-12-03 12:31:20 +00:00
parent 2f4aeeaced
commit 85dd3fbe30

View File

@ -64,10 +64,17 @@ struct CV_GpuMeanShiftSegmentationTest : public CvTest {
Mat img;
cvtColor(img_rgb, img, CV_BGR2BGRA);
for (int minsize = 0; minsize < 2000; minsize = (minsize + 1) * 2)
int major, minor;
cv::gpu::getComputeCapability(cv::gpu::getDevice(), major, minor);
for (int minsize = 0; minsize < 2000; minsize = (minsize + 1) * 4)
{
stringstream path;
path << ts->get_data_path() << "meanshift/cones_segmented_sp10_sr10_minsize" << minsize << ".png";
path << ts->get_data_path() << "meanshift/cones_segmented_sp10_sr10_minsize" << minsize;
if (major == 1)
path << "_CC1X.png";
else
path << ".png";
Mat dst;
meanShiftSegmentation((GpuMat)img, dst, 10, 10, minsize);