backgroundIndex function

Index and remove background pixels for color clustering