Identifies the bright lights on an image of a Christmas tree through filtering and clustering, counts the number of lights
Filters the image into red, green, and blue. Since green seems to be the most vibrant image of the three, filter and cluster the green image.
Since green seems to be the most vibrant image of the three, filter and cluster the green image.
With pixel threshold set to 240 (out of 255) and the minimum island size set to 100, number of lights = 88.
This image shows where the program believes the lights are.