@OldPman-a bit more tweaking with values and code in general, see 2 pics below, the left pic is the original Gimp plugin produced heightmap image and the right pic is the heightmap produced by the DBPro code.
Still playing with values and contrast. Looking at the pic, it looks like it needs inverting maybe. 3rd pic added is where I've changed the contrast to extreme value of 100. Some interesting results and can also produce curves and weird effects.
[update-added a 4th pic which after swapping 2 values over , have produced 99.9% accurate replication of the Gimp Plugin image (pic 1). Still needs to be darker I think. Other than that, pretty much there. Experimenting with values has been fun and addictive. Loads more I can do with this.]
[update 2]
Here is a preview screenshot showing the results in GameGuru with the newly recreated HeightMap being applied:
Of course , you could just use Gimp's Normalmap plugin, but I wanted to be able to do it all in my own app, so converted the C source code to DBPRo code.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others