Global Vs. Local: Component Based Learning For Classification And Image Understanding