Abstract : The purpose of this paper is to present numerical methods and results about the contrast imaging problem in nuclear magnetic resonance which corresponds to a Mayer problem in optimal control. The candidates as minimizers are selected among a set of extremals, solutions of a Hamiltonian system given by the Pontryagin Maximum Principle and sufficient second order conditions are described. They form the geometric foundations of the HAMPATH code which combines shooting and continuation methods, see Ref. 9. The main contribution of this paper is to present a numerical analysis of the contrast imaging problem in NMR in the case of deoxygenated/oxygenated blood samples as an application of the aforementioned techniques.