To watch tower 2
You: Wow, counting starts in the sky. That's absolutely amazing.
Ashana: Yes, it is. It is very hard to detect the stars in the starry background.
You: Well, if the background is black and the starts are white, counting the starts will be much simpler, right?
Ashana: Yes, in that case, you just have to read in the image. Make a graph with the image pixels. Then find how many connected components in the graph. That's the count of the stars.
You: hum, Ashana, can you give me an example.
Ashana: well, I see, you are impatient to dateeeas. Click... Click... Sorry, here is the example, enjoy.
graph.java