Nonlocal Variational Methods In Image And Data Processing