spots function

Find spots based on threshold and minimum total intensity