Computing shape features

I realized another feasibility study for which the aim was to compute the local directions and lengths on each pixel of binary images.
Some results are shown below :
Lengths
Directions