The Logistic Random Field - A convenient graphical model for learning parameters for MRF-based labeling