instead of averaging the click-coordinates and then computing the min/max values, we could compute the min/max values using the clicks separately, and average the min/max values itself.
instead of min = calib( (x1 + x2)/2 )
do min = ( calib(x1) + calib(x2) )/2
instead of averaging the click-coordinates and then computing the min/max values, we could compute the min/max values using the clicks separately, and average the min/max values itself.
instead of min = calib( (x1 + x2)/2 )
do min = ( calib(x1) + calib(x2) )/2