Joint Detection-Estimation of Brain Activity in fMRI using Graph Cuts Thesis for the Master degree in Biomedical Engineering Lisbon, 30 th October 2008.