The region of interest is searched for a starting point and
transition point, i.e. the starting point is a peak ( y axis
minimum value) of the region boundary and the transition
point is a bottom ( y axis maximum value) of the region
boundary. The starting point and the transition point are
encoded as “S” and “9” respectively