more feature computation code from cvpr 13