wsAndy / shape-context-matching

shape matching
MIT License
1 stars 1 forks source link

expression:vector subscript out of range #1

Open gongjing1996 opened 5 years ago

gongjing1996 commented 5 years ago

test it on win10+VS2015+opencv3.2.0

wsAndy commented 5 years ago

In which file and which line ?

gongjing1996 commented 5 years ago
      In which file and which line ?

main.cpp line251

wsAndy commented 5 years ago
      In which file and which line ?

main.cpp line251

in main.cpp line 250, you can print distanceBin * 12 + angleBin and skip that cycle if distanceBin * 12 + angleBin > 60

gongjing1996 commented 5 years ago

distanceBin * 12 + angleBin is not greater than 60. It's a negative number -3,so I break and return histogram,and then it get the initialization error in lap.cpp,line 174.

wsAndy commented 5 years ago

distanceBin * 12 + angleBin is not greater than 60. It's a negative number -3,so I break and return histogram,and then it get the initialization error in lap.cpp,line 174.

maybe angleBin is a negative one, add abs , have a try.

gongjing1996 commented 5 years ago

it doesn't work. Thank you very much all the same!