Fix opts parameter for centroids

Change-Id: I03acbb3440191764a9753ffde9d74c5d7b441948