1. A method for detecting an object from a digital image constructed of multiple pixels, the method comprising: selecting a neighborhood for each pixel under observation in the image, each neighborhood being of known size and form, and reading pixel values of each neighborhood; selecting at least one set of coefficients for weighting each neighborhood from a whitened matrix such that each pixel value of each neighborhood is weighted with at least one coefficient, the matrix to be whitened being obtained by applying one of the following: the local binary pattern technique, the local phase quantization technique and the modified census transform technique; searching for an existence of at least one object feature at each pixel under observation on the basis of at least one combination of weighted pixel values at each neighborhood; and verifying the existence of the object in the digital image on the basis of the searches of existence of at least one object feature at a predetermined number of pixels.