How to use machine learning in image segmentation?

I have an image database containing raw medical images (lung x-ray image) and their corresponding binary masks indicating blood vessels. I would like to apply machine learning techniques suck as GLM on these training data to build a model. So I can use this model to generate binary blood vessle mask for other lung x-ray images. I need some help for a machine learning workflow/pseudo code for this project. The Matlab code http://www.mathworks.com/matlabcentral/fileexchange/46082-retinal-vessel-detection-by-gabor-transform-and-machine-learning–a-tutorial is a good start but I’m not sure how I can apply this code to a entire image library?


Link to Full Article: How to use machine learning in image segmentation?