Generally, the effective height of a barrier is the measurement from the finished ground level to the top of the barrier. The ground surface can often be uneven or rough and minor irregularities should not compromise the height of a barrier.
However, where there are objects adjacent to the barrier which could compromise the barrier’s effective height (for example a deck) then the effective height of the barrier may need to be measured from the top of the object rather than the ground level.