Assuming that srcHoughMatrix
is a 3-dimensional matrix :
Instead of
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
How can I add 1
to each cell if the condition is true , without using a temporary variable
or without
srcHoughMatrix(index,jindex,currentRadius) = srcHoughMatrix(index,jindex,currentRadius) + 1;
Thanks
See Question&Answers more detail:os