How to show thickness distribution of a thin layer

How to measure thickness of a segmented structure is described here: