SURGICAL TOOL DETECTION BY MODELLING LOCAL APPEARANCE AND GLOBAL SHAPE