skeleton and color distribution calculation