Evolution of a curved vortex filament into a vortex ring