I am looking for a free Matlab toolbox that should enable to count/classify objects in an image (B&W) according to their shape and size. Thanks in advance
you can do a bwlabel, and use regionprops ('all') to get the properties of each connected region (size, shape, contours, fill factor, Euler number, etc), you can then use this to form feature vectors (normalize them) and pass them to SVM, etc in matlab for ML/classification.