简体   繁体   中英

Exaggerating colors in GIMP/Python

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.

示例图片

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!

增加GIMP中的对比度

You probably want an adaptive threshold .

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

我最终使用了G'MIC的双向过滤,它是完成这项工作的理想工具。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM