1. A method for denoising image data by a video encoder based on noise parameters, said method comprising: receiving a video sequence comprising a first frame and a second frame, wherein said first frame comprises a first region and said second frame comprises a second region, wherein said second region is static in relation to said first region; determining a noise image region based on a difference between said first region and said second region; measuring at least one noise parameter of said determined noise image region; detecting a smooth region of a frame of said video sequence; denoising said detected smooth region based on said at least one measured noise parameter as an a priori constraint in a total variation minimization process; and sending an encoded image to a video decoder wherein the encoded image is based on the denoised, detected smooth region, and based on said at least one noise parameter.