Feature extraction for scene labeling problems