Discriminative Dictionary Learning for (2D) Image Segmentation Setup Environment: The following software/libraries are needed: SPAMS 2.6.* numpy 1.15.1 matplotlib 2.0.2 scikit-image 0.14.1 scikit-learn *.19.1 Datasets: The following datasets are used in our experiments: DRIVE STARE Data preprocessing: All the images are preprocessed using: Gray scale conversion CLAHE normalization