MATLAB: Vein Detection in Angiogram image

angiogram imagesImage Processing Toolboximage segmentation

There are veins in above image. I need to find out the location of pixels at which veins are present.
I tried to do this:
img=imread('segmented plus orignal image 1\aa00001.jpg');
bi=im2bw(img); imshow(bi)
But still, it is not clear.

Best Answer

You may want to try edge detection followed by some image morphological operations (e.g. dilation, erosion) and region flood-filling.
Also, if your results from im2bw are as depicted in the comment above, the bwareaopen function may be helpful.