Skip to content

Commit

Permalink
[Issue JdeRobot#792] Removes compilation warnings from visionlib/imgA…
Browse files Browse the repository at this point in the history
…nalyze
  • Loading branch information
lr-morales committed Jul 27, 2017
1 parent a9b5e50 commit df6f66a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libs/visionlib/imgAnalyze/linesDetection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace visionLibrary {
cv::findContours(imgTmp2, vecContours, CV_RETR_LIST, CV_CHAIN_APPROX_NONE);

/*Run through found coutours*/
for(int contour=0; contour<vecContours.size(); contour++) {
for(unsigned int contour = 0; contour < vecContours.size(); contour++) {

/*Check size*/
if(vecContours[contour].size() < min_size_contour)
Expand All @@ -93,14 +93,14 @@ namespace visionLibrary {
i = 0;
first = true;

while ((i < (vecContours[contour].size() - (i_jump-1)))) {
while ((i < (vecContours[contour].size() - (i_jump - 1)))) {

counter++;

pstart.x = vecContours[contour][(int)i].x;
pstart.y = vecContours[contour][(int)i].y;
pend.x = vecContours[contour][(int)(i+i_jump-1)].x;
pend.y = vecContours[contour][(int)(i+i_jump-1)].y;
pend.x = vecContours[contour][(int)(i + i_jump - 1)].x;
pend.y = vecContours[contour][(int)(i + i_jump - 1)].y;

/*Calculate type*/
diff_x = pstart.x - pend.x;
Expand Down Expand Up @@ -222,7 +222,7 @@ namespace visionLibrary {
if(debug)
imgBlack.release();

for(int t1 = 0; t1<vecContours.size(); t1++)
for(unsigned int t1 = 0; t1 < vecContours.size(); t1++)
vecContours[t1].clear();
vecContours.clear();
}
Expand Down

0 comments on commit df6f66a

Please sign in to comment.