Multiphase Dynamic Labeling for Variational Recognition-Driven Image Segmentation