added back colorsimilarity
updated adjacentsimilarity to use color matrix