May be there is an error in this file. It's should be "int num_keypts = locs.cols" in line 205.
May be there is an error in this file. It's should be "int num_keypts = locs.cols" in line 205.