Automatic small objects detection algorithm. It uses a local threshold method.