1. A method for processing an image, the method comprising: determining a plurality of features representative of said image; obtaining both information representative of a probability of presence of an object in said image and information representative of a shape of said object by implementing a unique multivariate regression applied to at least a part of said features; wherein said features are shape-indexed by using a reference shape as an input to said method and wherein said reference shape is projected on at least one sliding window, said at least one sliding window delimiting an area of said image where said unique multivariate regression is applied.