The title may be a bit confusing but the problem is this;
Lets assume I have 5 points in 4 groups (in total 20 points). What I want to achieve is;
-> Pick one point from each group (we will have 4 points at the end)
- whose pairwise distance is larger than a threshold and
- sum of pairwise distances is maximized.
For realization of parameters; group size is number of people in a scene, and points in a group is possible locations of each person. Point size can be increased to tens or hundreds for better estimation depending on computing resources but people count possible will not be larger than 20 or 30.
I hope, I could explained the question clear enough. If not, I will try to clarify better.