The 2DEM restraint fits a given model to an 2DEM class average and computes a score that quantifies the match. The computation proceeds in three stages: generation of 3D model projections on a 2D grid, alignment of the model projections and the 2DEM class average image, and calculation of the best fitting score.