Adding max and min diameter parameters to blob detector algorithm