Active Detection of Deformable Contours using B-Snake Model for MRI