In this work, an acquisition and image processing algorithm is presented, to obtain information on the topology aspects of the 3D surface, starting from 2D images, by means of the gray level analysis of small risings in the surface, when it is lighted with obliquely directed sources. In the surface the following can be observed: bright areas correspond to uprising surfaces with slopes facing the lights and shaded areas correspond to sinking surfaces. When several images of the same area are obtained with lighting from various sources, information on the geometry and orientation of the relief elements, such as raisings and depths of the surface, can be computed. With this principle, a novel algorithm has been developed for the detection of several topological cases and characteristics of threads, in structures of weaves planes, in the process of detection of weave shortcomings.