B-spline Based Image Segmentation, Registration and Modeling Neuron Growth