A method for removing arteries that appear bright with intensities similar to white matter in Magnetized Prepared Rapid Gradient Echo images of the ventral medial prefrontal cortex is described. The fast marching method is used to generate a curve within the artery. Then, the largest connected component is selected to segment the artery which is used to mask the image. The surface reconstructed from the masked image yielded cortical thickness maps similar to those generated by manually pruning the arteries from surfaces reconstructed from the original image. The method may be useful in masking vasculature in other cortical regions.