Quote:
Originally Posted by rudun
Thank you, that is very helpful. We will look for an example on filtering the two best contours.
|
First, find the 5 biggest particles. Then, make pairs so that no pair is duplicated or left out. Then, get left/top/right/bottom info about each item in a pair.
Use this info to calculate 5 different "scores" for each pair, then average the scores to get an overall score for each pair. Use the center and width/height of the pair with the highest overall score to do the rest of your processing (distance and direction).
Examples of "scores:"
Correctness of overall aspect ratio
particle height similarity
particle width similarity
particle height similarity to group height
particle width to overall width ratio