I know Mathematica can do this but I could not come up with the correct search terms to locate a solution.
I want to mark interesting spots (such as compromised cells) in an image by hand and use Mathematica to count the marks.
If I were to produce an image where the marks are colored-filled circles (picking a color that is pretty different to the main colors of the image), how could I count those marks? Ideally, I would like to be able to use a small number of different colors and count them separately in one image, but obviously that is not realy necessary as I can use copies such as marking different layers in Photoshop and rendering multiple images each with only one marking layer.
If you know an working example or the appropriate search terms I would also appreciate that.
This would actually be perfect for my use case. I could activate all layers with marks for Mathematica counting, and I should get perfect counts (the marks cannot intersect because of the way they have been defined and added by hand). On the other hand, when I activate the background layer containing the original image, I would get a nice images for visualization/ publication.