A method includes obtaining at least one of projection data from a spectral scan or image data generated from the projection data, selecting a local reference dataset from the at least one of the projection data or the image data, determining a noise pattern for the selected reference dataset, estimating underlying local structure from the reference dataset based on the noise pattern, and restoring at least one of the projection data or the image data based on the estimated underlying local structure.