Restricted characteristic functions for general optical configurations