The Matheron representation theorem for gray-scale morphological filters