colored tablet tracking
I am trying to track 3 colored particles (blue, black and pink, an image set is attached below) in a rotating drum that is filled with only white tablets apart from the 3 colored ones mentioned above. I am able to do that with the pink tablet because I already have a file that detects the pink tablet, but this file was sent to me and I do not know how to create one for black and blue tablets accordingly. So basically, I am looking for files that can detect black and blue pills in a drum filled with white pills. The purpose of the analysis is to get the x- and y-displacement of the colored tablets and then to calculate their velocity. I have also attached an excel shhet were the general form of my results at the moment can be seen.
What I am doing at the moment is loading in 2000 consecutive frames of the drum video. Then I am using a macro that selects the pink tablet with the file and uses the automatic tracking tool inside image pro and I get an excel sheet where x- and y-position as well as distance are measured. But I somehow can not figure out a way to track the black and blue tablets.
My priority is that I can tell in the end which tablet is responsible for which track so I am looking for files that select only the black and only the blue tablet. The next highest priority is to be able to track all 3 tablets in one run for an image sequence.
Could you please provide me a solution for this or send me a file that detects the blue and the black tablet.
Thanks in advance and best regards