How to create a heightmap?

Hello!
I want to create some Single Image Random Dot Stereograms (SIRDS) and need heightmap images (from a figure or a prop) to do that. Does anybody knows how to do that (with any of theses applications: DAZ Studio, Carrara, Hexagon, Blender or Poser)?
Is there a special render setting available?
Any hint is wellcome.
Comments
What you need is a depthmap (pixel intensity indicates distance from camera to first surface) - a heightmap is something rather different.
Atmospheric Effects Cameras for DAZ Studio has settings to do depthmaps.
Thanks for your reply, that's exactly what I was looking for. (Using the wrong term explains why I couldn't find anything usefull ;-)).