Extraction of features or characteristics of the image by analysing segments intersecting the pattern