假设这srcHoughMatrix
是一个 3 维矩阵:
代替
if (currentRadius >= MINIMUM_ALLOWED_RADIUS )
% we're using only radiuses that are 6 or above
currentHough = srcHoughMatrix(index,jindex,currentRadius);
srcHoughMatrix(index,jindex,currentRadius) = currentHough + 1;
end
1
如果条件为真,如何在不使用临时变量或不使用临时变量的情况下添加到每个单元格
srcHoughMatrix(index,jindex,currentRadius) = srcHoughMatrix(index,jindex,currentRadius) + 1;
谢谢