In this paper, we present a fast and accurate approximation of the Euclidean opening function which is a wide-used tool in morphological mathematics to analyze binary shapes since it allows us to define a local thickness distribution. The proposed algorithm can be defined in arbitrary dimension thanks to the existing techniques to compute the discrete power diagram.