/** * \file scores2D.cpp * \brief Scoring functions for 2D * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #include "IMP/em2d/scores2D.h" #include "IMP/em/image_transformations.h" #include "IMP/algebra/Vector2D.h" #include "IMP/algebra/Rotation2D.h" #include "IMP/algebra/Transformation2D.h" IMPEM2D_BEGIN_NAMESPACE double average_rotation_error(RegistrationResults correct_RRs, RegistrationResults computed_RRs) { unsigned int n_regs= std::min(correct_RRs.size(),computed_RRs.size()); double Score=0.0; for (unsigned int i=0;i