In this paper we present a new way to determine the geometrical objects associated to the Homology groups of a 2D-digital binary image. In fact, using Membrane Computing with techniques of spanning forests, we are able to define a parallel algorithm which calculates not only the Betti numbers, but also the geometric objects which generate these holes.