Centroidal Voronoi Tessellation with Applications in Image and Mesh Processing