Dissimilarity-based representation for local parts