Conditional Random Fields for Object Recognition