compute AP for greedy occlusion reasoning