Automated Measurement of Midline Shift in Brain CT Images and its Application in Computer-Aided Medical Decision Making