I have to process about a thousand photos of the evolution of a blob and for each photo I have to measure the area and the perimeter of the surface of the blob (in yellow on the photo).
I tried for example to select the color yellow but it doesn’t work very well, I think maybe it would be better to select the shades of gray but I don’t know how to do it.
I would also like to recover by a script the number of pixels selected for the surface and the border.
For the number of pixels, I want to know how many pixels are yellow . This value can give me the surface area , I see this valeur in the histogram but I don’t know how to copy/paste it automatically into a spreadsheet with a script for example ( there are almost a thousand images !!! )
Colors → Auto → Stretch Contrast or Colors → Auto → Stretch HSV
You can also use the Levels tool (Colors → Levels) and hit “Auto Input Levels”
In that case I don’t think GIMP is the correct tool. I’d look at using something scriptable by design, like Imagemagick or GraphicsMagick to convert/extract the data you want (eg. ImageMagick’s histogram: and info: operators.)
How essential is the “area” and the “perimeter” measurements? That might be a little more work to accomplish vs. a pixel count of yellow vs. not-yellow.
It is to study the morphology of the blob.
For one photo it is easy to write the number of pixels with Select by color (to detremine the area) and Select Border (to determine the perimeter) .
Then it is enough to know the area of a pixel to calculate these two values.