Delineation of ECT images using global constraints and dynamic programming | Synapse