Skip to content

Commit bffb0be

Browse files
committed
変数重複の警告対策
1 parent 28ead84 commit bffb0be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/ximgproc/test/test_sparse_table_morphology.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ Mat VisualizeCovering(Mat& kernel, const stMorph::kernelDecompInfo& kdi)
222222
cv::line(kernel, Point(0, r * rate), Point(kdi.cols * rate, r * rate), Scalar(0));
223223
for (int c = 0; c < kdi.cols; c++)
224224
cv::line(kernel, Point(c * rate, 0), Point(c * rate, kdi.rows * rate), Scalar(0));
225-
for (uint r = 0; r < kdi.stRects.size(); r++)
225+
for (uint row = 0; row < kdi.stRects.size(); row++)
226226
{
227-
for (uint c = 0; c < kdi.stRects[r].size(); c++)
227+
for (uint col = 0; col < kdi.stRects[row].size(); col++)
228228
{
229-
Size s(1 << c, 1 << r);
230-
for (Point p : kdi.stRects[r][c])
229+
Size s(1 << col, 1 << row);
230+
for (Point p : kdi.stRects[row][col])
231231
{
232232
Rect rect(p, s);
233233
int l = (rect.x) * rate + i % fluct + 2;

0 commit comments

Comments
 (0)