Takes in DCT of f