matlab program to obtain stick figure

matlab program to obtain stick figure from an image having black
background.