Learning structured prediction models for interactive image labeling