A small project of image processing in Matlab
The main script here is MainScript.m , it uses the other files as functions Depending on the image file you could have to adapt a few parameters such as "seuil" or the sizes of the erosion and dilatation filters for example.