Automatic arterial input function detection from dynamic contrast enhanced MRI data