Cosine transform based preconditioners for total variation minimization problems in image processing