delmottea / libCMT

c++ port of the python code from https://github.com/gnebehay/CMT
BSD 3-Clause "New" or "Revised" License
67 stars 45 forks source link

nested loop confusion #7

Open emillundh opened 10 years ago

emillundh commented 10 years ago

/home/emil/libCMT/CMT.cpp: In member function ‘void CMT::processFrame(cv::Mat)’: /home/emil/libCMT/CMT.cpp:558:69: warning: name lookup of ‘i’ changed [enabled by default] descriptorMatcher->match(selectedFeatures, features.row(i), matches); ^ /home/emil/libCMT/CMT.cpp:516:13: warning: matches this ‘i’ under ISO standard rules [enabled by default] for(int i = 0; i < keypoints.size(); i++) ^ /home/emil/libCMT/CMT.cpp:527:17: warning: matches this ‘i’ under old rules [enabled by default] for(int i = 0; i < matches.size(); i++) ^

Perhaps nicer to change loop variables to avoid this kind of warning?

delmottea commented 10 years ago

it's done