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