0

I have images such as the one below from which I need to count the prominent white spots. Unfortunately my object counting algorithm is becoming confused due to those "fuzzy" white areas. It can sometimes see hundreds of objects there.

example image

So what I'm wondering is whether there's some way to perhaps exaggerate the white spots and suppress the "fuzzy" areas either using filters in GIMP or Python libraries.

Thank you!

Simon MᶜKenzie
  • 8,344
  • 13
  • 50
  • 77
russelldc
  • 16
  • 2
  • 1
    You can threshold them: e.g. everything with lightness over 127 is white, below is black. – Amadan Jun 17 '13 at 02:17
  • I'm aware of thresholding and contrast options, I was hoping there was something more flexible. For example, some of the spots aren't as bright as others and thus are excluded. For a more specific example, those ones at the very bottom are not there anymore if I try to threshold out the fuzzy cloud. – russelldc Jun 17 '13 at 02:45

3 Answers3

0

Increase the contrast in GIMP.

Brent Washburne
  • 12,904
  • 4
  • 60
  • 82
0

You probably want an adaptive threshold.

The modules that I know have this in Python are scikit-image and OpenCV.

tom10
  • 67,082
  • 10
  • 127
  • 137
0

I ended up using G'MIC's Bilateral Filtering, it was the perfect tool for the job.

russelldc
  • 16
  • 2