Implementation of a standard blob detection algorithm