From pixel lines to ofPolyline

I would like to know how can I make ofPolylines from a black and white image,

This is my ofImage

and this is what I would like to get, showing my desired 2 ofPolylines

Any help will be much appreciated

ofxPathfinder is all I need http://ofxaddons.com/repos/629