Starting froma a Mesh to a Height map

Hello,
i’m new in this forum.

I’ve a question. It’s possible to obtain a DEM (digital elevation map), in other words a height map, starting with a mesh (for example a terrain)?? In the Forum i found only the opposite. It would also be useful for me to obtain a “table” in python.
Thanks a lot

Alessandro

are you talking about equal height cuntour map like those found in Civil engeneering mostly?

i mean the mesh itself is the real thing to a certain resolution in terms of height

i mean heigth map is usually a 3D object not a plane pic like a normal map or bump map

as you said there is a way (script ) to go from a pic to a height map

happy blendereing