Calculate mean height of processed Image

Hi everyone,
I want to calculate the mean height of the white areas (see attachment). Can somebody help me please?