Imagine that we have a image sequence of some Christmas tree lights stretched out on the ground. The lights are blinking away. We're not interested in colors, only brightness and periods.
Assuming that the lights don't move throughout the video, this is how I would tackle the problem:
- I would begin by using region of interest manager in ImageJ to quickly bound each light with a rectangle, then export the xy coordinates into a file.
- Next, load the xy coordinates into a Python script. Each light is to be cropped out of the large image and stored in a list of smaller images.
- On each image, I would then perform a gray scale conversion, Gaussian Blur, and Otsu's Binary Thresholding.
- Lastly, I would sum over the binary images to yield an integer, which should give a relative brightness. Store and loop for each image in the sequence, and for each light in each image.
Thank you very much for any advise or critique!