Structured local predictors for image labelling