* Determine the maximum error of all points in the network * @return double Max error of points * * @history 2010-01-12 Tracie Sucharski - Renamed from MaximumError */
| 1329 | * @history 2010-01-12 Tracie Sucharski - Renamed from MaximumError |
| 1330 | */ |
| 1331 | double ControlNet::GetMaximumResidual() { |
| 1332 | // TODO: Make sure the cameras have been initialized |
| 1333 | |
| 1334 | double maxResidual = 0.0; |
| 1335 | foreach(ControlPoint * p, *points) { |
| 1336 | double residual = p->GetStatistic( |
| 1337 | &ControlMeasure::GetResidualMagnitude).Maximum(); |
| 1338 | if (residual > maxResidual) |
| 1339 | maxResidual = residual; |
| 1340 | } |
| 1341 | |
| 1342 | return maxResidual; |
| 1343 | } |
| 1344 | |
| 1345 | |
| 1346 | QString ControlNet::GetNetworkId() const { |