|
Re: TrackTwoColors execution time
There are a few things that you could try. One is to reduce the number of particle hits that FindTwoColors will check. The default is 3. You might try to reduce this to 2 and see if it helps. That could reduce the processing by 40%. There is an overloaded method of FindTwoColors that takes an additional parameter. That is the number of hits.
Another option is to tweak the GREEN color description in td2. We have found that the values in the example are very generous and will accept almost anything resembling green.
Also in the function FindTwoColors the behavior for the option ABOVE is different from that for BELOW. The BELOW case needs the addition call to SizesRelative because there is so much green. This isn't a speed related issue but the camera will lock on to a Pink over Green if there is almost any green in the image. This might not be a problem if the green filter is tightened up a bit.
|