Automatic segmentation of artifacts in X-Ray, CT, and MRI images using Graph Cut Theory.