Recognition with local photometric invariants