Automatic monitoring and 3D reconstruction applied to cultural heritage