fixed test with small size gpu memory
authorAndrey Morozov <no@email>
Sat, 21 Aug 2010 18:30:14 +0000 (18:30 +0000)
committerAndrey Morozov <no@email>
Sat, 21 Aug 2010 18:30:14 +0000 (18:30 +0000)
tests/gpu/src/stereo_bp.cpp

index 7ad2ab0..00ee0e8 100644 (file)
@@ -63,7 +63,7 @@ void CV_GpuStereoBP::run(int )
         cv::Mat img_template = cv::imread(std::string(ts->get_data_path()) + "stereobp/aloe-disp.png", 0);
 
         cv::gpu::GpuMat disp;
-        cv::gpu::StereoBeliefPropagation bpm(128, 8, 4, 25, 0.1f, 15, 1);
+        cv::gpu::StereoBeliefPropagation bpm(64, 8, 2, 25, 0.1f, 15, 1, CV_16S);
 
         bpm(cv::gpu::GpuMat(img_l), cv::gpu::GpuMat(img_r), disp);
 
@@ -77,3 +77,4 @@ void CV_GpuStereoBP::run(int )
 
 
 CV_GpuStereoBP CV_GpuStereoBP_test;
+