We modify the automatic extraction scheme of brain tissue from MRI with template matching. We calculate the local fractal dimension as a complexity parameter and vary the size of template which is propotional to the fractal dimension. As a result, the extracted brain shape looks better with the modified method.