Segmentation of Brain MR Images Using Local Multi-Resolution Histograms