Text this: One-dimensional processing for adaptive image restoration