我在CPU上試過Hough,運行良好,速度稍慢。所以,我想在OpenCV的CUDA運行霍夫,但它表明這個錯誤,即使我有GpuMat - OpenCV Error: The function/feature is not implemented (getGpuMat is available only for cuda::GpuMat and cuda::HostMem) in cv::_Input
我希望在hough變換返回到終點的行上設置值。我已經寫下面的代碼片斷 imshow(img);
hold on
img_black = img;
for k = 1:length(lines)
xy = [lines(k).point1; lines(k).point2]; %line end points
[x, y] = bresenham(xy(1,1),xy(