pixelAssignMatrix function

Make pixel assignment matrix for recoloring