A method includes receiving a computerized tomography (CT) image comprising voxels of a body part of a subject, segmenting the image so as to identify a surface of a skin and a surface of a bone in the image, measuring respective minimum distances to the bone from a plurality of points on the surface of the skin, and rendering an image of the surface of the skin while visually coding the rendered image so as to indicate the respective minimum distances.