#NEWLINE# def target_registration_errors( tx , point_list , reference_point_list ) : #NEWLINE# #INDENT# '\n  Distances between points transformed by the given transformation and their\n  location in another coordinate system. When the points are only used to evaluate\n  registration accuracy (not used in the registration) this is the target registration\n  error (TRE).\n  ' #NEWLINE# return [ np . linalg . norm ( ( np . array ( tx . TransformPoint ( p ) ) - np . array ( p_ref ) ) ) for ( p , p_ref ) in zip ( point_list , reference_point_list ) ]