  The objective of this article is to introduce the tools to analyze the
contrast imaging problem in Nuclear Magnetic Resonance. Optimal trajectories
can be selected among extremal solutions of the Pontryagin Maximum Principle
applied to this Mayer type optimal problem. Such trajectories are associated to
the question of extremizing the transfer time. Hence the optimal problem is
reduced to the analysis of the Hamiltonian dynamics related to singular
extremals and their optimality status. This is illustrated by using the
examples of cerebrospinal fluid / water and grey / white matter of cerebrum.
