1. A method for detecting orientation of the contours in an image, comprising: initially transforming the image using a non-decimated multi-resolution transform, segmenting the image into a plurality of blocks, determining an optimal resolution for each block, detecting a predominant direction of contour for each of the blocks.