Linear and Robust Estimation of Local Image Structure