A method for recognizing an object in a target image using model
primitives comprising an additive primitive and a subtractive primitive;
weights are assigned to the additive and subtractive primitives; a target
primitive is derived for the object; associations are determined between
the target primitive and the model primitives; a similarity score is
computed for the target primitive with respect to the model primitives;
the similarity score is increased for each association between the target
primitive and the additive primitive and decreased for each association
between the target primitive and the subtractive primitive; the weights
determine an amount by which the similarity score is increased or
decreased for each of the associations.