This work describes a new method to obtain shapes on surfaces based on digital holographic interferometry (DHI). Research has been reported with different methods, such as fringe projection. DHI, being a full-field technique, decreases the number of images to capture and the processing time, besides having a high resolution. Our proposed method consists in obtaining the shape of the object and a reference plane using an out-of-plane interferometer. The phase difference of the recorded holograms is achieved by means of the Fourier transform method. This resulting phase has a tilt produced by the angle of the object beam relative to the optical axis, which is removed by subtracting the phase difference from the reference plane. The method was tested in two cylinders, one with dimensions of 17.5x23.4mm reconstructed with a height sensitivity of 4.1mm, and another with two levels: one half with dimensions of 16.08x12.75mm, and the other half of 19.07x12.75mm; the result was a successfully reconstructed shape, with a height sensitivity of 2.7mm.