Segmentation on its way, separated horizontal lines, now for vertical piece of cake.
In the mean time, I seem to have written all my functions with height mixed up with width, so I need to go back and fix that before going forward any more.