Hi Alexey,
What I would like to do is reduce the mean projection error associated with each marker. To do this, I would start with a target threshold value, say 0.3 px or 0.4 px. If the mean error for a given marker is over that threshold, remove the projection for that marker with the highest error value. If the mean error for the marker remains above the target value, once again, from the remaining projections, remove the projection with the highest error. Continue this process until the mean error for the marker is at or below the target value.
I would then repeat this process for each marker.
I usually do this manually through the GUI, but would like to automate this through scripting.
Thank you again for your help.