We survey the recent activities of the Odyssée Laboratory in the area of the application of mathematics to the design of models for studying brain anatomy and function. We start with the problem of reconstructing sources in MEG and EEG and discuss the variational approach we have developed for solving these inverse problems. This motivates the need for geometric models of the head. We present a method for automatically and accurately extracting surface meshes of several tissues of the head from anatomical MR images. Anatomical connectivity can be extracted from Diffusion Tensor Magnetic Resonance Images but, in the current state of the technology, it must be preceded by a robust estimation and regularization stage. We discuss our work based...