A method for decomposing an image consisting of pixels to cartoon image and/or texture image, in the course of which the image is filtered with a low-pass filter, the method comprises - producing a plurality of intermediate cartoon images by filtering the image with the low-pass filter while changing the value of a filtering parameter of the low-pass filter within a range, and deriving intermediate texture images by subtracting the intermediate cartoon images from the image, and is further characterized by - dividing the intermediate cartoon images and the intermediate texture images into cells, assigning to each cell a larger block being centered around the cell on the intermediate cartoon images and on the intermediate texture images, and determining, for each value of the filtering parameter and for the block assigned to each cell, by getting the cells one by one, an Angle Deviation Error measure, on the basis of the parts of the intermediate cartoon image and the intermediate texture image falling into that block, - determining a filtering parameter image divided into cells corresponding to the division of the intermediate cartoon images and the intermediate texture images by selecting a filtering parameter value for pixels of each of the cells of the filtering parameter image for which the Angle Deviation Error measure, determined for the block assigned to the corresponding cell of the intermediate cartoon images and the intermediate texture images, is minimal, and - determining pixels of the cartoon image and/or the texture image for each of the cells by selecting for the pixels of the cell corresponding pixels of the intermediate cartoon image and/or intermediate texture image produced with the filtering parameter values selected for the pixels of the corresponding cell of the filtering parameter image. - producing a plurality of intermediate cartoon images by filtering the image with the low-pass filter while changing the value of a filtering parameter of the low-pass filter within a range, and deriving intermediate texture images by subtracting the intermediate cartoon images from the image, and is further characterized by - dividing the intermediate cartoon images and the intermediate texture images into cells, assigning to each cell a larger block being centered around the cell on the intermediate cartoon images and on the intermediate texture images, and determining, for each value of the filtering parameter and for the block assigned to each cell, by getting the cells one by one, an Angle Deviation Error measure, on the basis of the parts of the intermediate cartoon image and the intermediate texture image falling into that block, - determining a filtering parameter image divided into cells corresponding to the division of the intermediate cartoon images and the intermediate texture images by selecting a filtering parameter value for pixels of each of the cells of the filtering parameter image for which the Angle Deviation Error measure, determined for the block assigned to the corresponding cell of the intermediate cartoon images and the intermediate texture images, is minimal, and - determining pixels of the cartoon image and/or the texture image for each of the cells by selecting for the pixels of the cell corresponding pixels of the intermediate cartoon image and/or intermediate texture image produced with the filtering parameter values selected for the pixels of the corresponding cell of the filtering parameter image.