Functional quantification of diaphany