I am trying to isolate (or segment to be precise) the vein pattern from Infra red image of a finger (using MATLAB) like shown below:
![enter image description here](https://i.stack.imgur.com/7XM2e.jpg)

So my output will be a binary image like (not the exact dimension of image shown):

![enter image description here](https://i.stack.imgur.com/T16Ra.jpg)

I tried histogram equalization to make the veins more visible, but it was not that successful. Any help to proceed further would be very helpful.