With Gimp you can define the image definition to about any arbitrary value, and the measure tool can display measure in the corresponding physical units. For instance in this picture the woman is about 404px high.
If we assume that in real life she is 1.60m the print definition is 404÷1.6=252.5 pixel per metre. Using Image > Print size
you can set this new definition, and you can even have Gimp do the computation for you:
Once this is done you change the units in the indicator at the bottom and any thing you measure will be displayed directly in that unit. For instance the tree diameter is about 2.02m:
However, if this is valid in a few easy cases such as this one (everything nicely vertical and tree at about the same distance as the person), in most photos you will have perspective distortions that make such measurements quite impractical and inaccurate. In fact in the measure above the three is at an angle, so the 2.02m are wrong, they are the measure of the projection of the tree on the photography plane and the tree is likely somewhat bigger. In this case a better measure is along a vertical:
But not all pictures are that easy...