1. A method for processing an image performed by an apparatus comprising at least one processor, said method comprising calculating by a processor a first filtering coefficient for a first pixel in the image based on structural information of the image wherein the first filtering coefficient has a continuous value and the structural information comprises edges in the image; determining by a processor a property value of a second pixel in the image using at least said first filtering coefficient and a corresponding property value of said first pixel; and generating a processed image by a processor by replacing an existing property value of the second pixel in the image with the determined property value.