Spinal cord detection using dynamic programming. Near the black line indicating the best path containing the largest number of isointense pixels, the white line denoting the best path traversing the region having the most homogeneous signal intensity is detected.