For traditional roofs height is measured as an average between the peak of the roof and the height of the eaves. To measure this, measure the height from the ground to the peak of the roof and measure the height from the ground to the eaves (bottom of the roof). The average of these two numbers is the height.
For flat roofs the height is measured from grade to the peak.
For mansard roofs the height is measured to the deckline.