Starting from the presentation of a unified perspective of segmentation with deformable models and data assimilation with images, we propose a data assimilation procedure designed to dynamically estimate 3D positions and velocities of the myocardium along the heart cycle, using data consisting of contours extracted from image sequences. We assess this procedure with a test problem based on a realistic computational heart model, and with synthetic data produced from reference simulations by creating binary images of the myocardium. The automatic meshing library CGAL is then employed to create contour meshes for each snapshot, and these meshes are directly used in the model-measurement comparisons. This approach gives very satisfactory qualitative and quantitative results.