Apply threshold once for all input types.