Morphological residues represent an image in an hierarchical way by means of a decomposition of its structures and according to a size parameter λ . From this decomposition, we can obtain a relation between the different residual levels associated with the complexity of the image structures. In this work, we introduce a new method to filter out components of gray-scale images based on the morphological residue decomposition which takes into account a size parameter and a certain level of complexity of the different structures to be filtered. As we will illustrate, this complexity is associated with a set of new attributes of the image defined according to the information contained in its multi-resolution representation.