Low-rank matrix recovery via smooth rank function and its application in image restoration