generalized compute_orientation_selectivity