opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

cuda sgm sgbm_gpu->setSpeckleWindowSize(200); sgbm_gpu->setSpeckleRange(1); does not work

Open deepConnectionism opened this issue 1 year ago • 1 comments
trafficstars

image

There are patches in the sky that can't be removed?

我的参数如下:

sgbm_gpu = cv::cuda::createStereoSGM(0, 128, 10, 120, 5, cv::cuda::StereoSGM::MODE_HH4);
sgbm_gpu->setMinDisparity(0);
sgbm_gpu->setNumDisparities(128); 
int blockSize = 7; //5
sgbm_gpu->setBlockSize(blockSize);
sgbm_gpu->setP1(10);
sgbm_gpu->setP2(120);
sgbm_gpu->setUniquenessRatio(5);
sgbm_gpu->setPreFilterCap(0); 
sgbm_gpu->setSpeckleWindowSize(50); 
sgbm_gpu->setSpeckleRange(1);
sgbm_gpu->setMode(cv::cuda::StereoSGM::MODE_HH4);
sgbm_gpu->setDisp12MaxDiff(1);

Is there anything wrong with my data? Looking forward to your reply.

deepConnectionism avatar Mar 20 '24 03:03 deepConnectionism

Not all of the CPU function has been implemented including setSpeckleRange().

cudawarped avatar Mar 20 '24 05:03 cudawarped