Automatic Contour Detection and Functional Prediction of Brain Tumor Boundary