1. A method of coding pixels or voxels of a digital or digitalized two dimensional or three dimensional image, the method comprising the steps of: providing a digital image comprising a two dimensional array of pixels or a three dimensional array of voxels, each pixel or voxel being defined by at least one variable providing an intensity of the pixel or voxel in a grey scale image, or HSV (Hue, Saturation and Value), or RGB values in a color image; considering each pixel or voxel of the image as a target pixel or voxel, and forming for each target pixel or voxel a neighborhood defined by a pixel or voxel window comprising the said target pixel or voxel and a certain number of surrounding pixels or voxels; and for each target pixel or voxel generating a vector univocally associated to the target pixel or voxel, components of the vector being generated as a function of the intensity or values of the target pixel or voxel and of each of the pixels or voxels of the pixel or voxel window, wherein the function of the intensity or values of the target pixel or voxel and of each of the pixels or voxels of the pixel or voxel window corresponds to characteristic parameters of a numerical matrix representing the pixels or voxels of the window or of a transformation of the numerical matrix, and wherein the characteristic parameters are formed by singular values of the numerical matrix comprising image data of the pixels or voxels of the window.