refine color and lightness
compute centroid (for future processing)