The transition from the lattice to the continuum: CPN−1 models at large N