Commit e9c9e036db752ce26ce30b6182c1f9366f3af4ce

Authored by Austin Van Blanton
1 parent 8576e493

Grid was switching x and y. Rename vars for clarity

Showing 1 changed file with 3 additions and 3 deletions
openbr/plugins/keypoint.cpp
... ... @@ -222,9 +222,9 @@ class GridTransform : public UntrainableTransform
222 222 QList<QPointF> landmarks;
223 223 const float row_step = 1.f * src.m().rows / rows;
224 224 const float column_step = 1.f * src.m().cols / columns;
225   - for (float i=row_step/2; i<src.m().rows; i+=row_step)
226   - for (float j=column_step/2; j<src.m().cols; j+=column_step)
227   - landmarks.append(QPointF(i,j));
  225 + for (float y=row_step/2; y<src.m().rows; y+=row_step)
  226 + for (float x=column_step/2; x<src.m().cols; x+=column_step)
  227 + landmarks.append(QPointF(x,y));
228 228 dst = src;
229 229 dst.file.setPoints(landmarks);
230 230 }
... ...