Function-valued mappings, total variation and compressed sensing for diffusion MRI