Added calcrigorForIm function and corresponding changes confirming to the latest API changes.
Merge branch 'eval_metrics' of github.com:batra-mlp-lab/object-proposals into eval_metrics