Text this: Magnetostatic Active Contour Model with Classification Method of Sparse Representation