(x)
return height
Compute height of the body, which is defined as:
            the distance between `neck` and `thigh`.
Compute height of the body, which is defined as:
            the distance between `neck` and `thigh`.
Compute height of the body which is defined as : the distance between neck and thigh .
def get_body_height(x):
        ''' Compute height of the body, which is defined as:
            the distance between `neck` and `thigh`.
        '''
        x0, y0 = get_joint(x, NECK)

        # Get average thigh height
        x11, y11 = get_joint(x, L_THIGH)
        x12, y12 = get_joint(x, R_THIGH)
        if y11 == NaN and y12 == NaN:  # Invalid data
            return 1.0
        if y11 == NaN:
            x1, y1 = x12, y12
        elif y12 == NaN:
            x1, y1 = x11, y11
        else:
            x1, y1 = (x11 + x12) / 2, (y11 + y12) / 2

        # Get body height
        height = ((x0-x1)**2 + (y0-y1)**2)**(0.5)
        return height
def get_body_height ( x ) : x0 , y0 = get_joint ( x , NECK ) # Get average thigh height x11 , y11 = get_joint ( x , L_THIGH ) x12 , y12 = get_joint ( x , R_THIGH ) if y11 == NaN and y12 == NaN : # Invalid data return 1.0 if y11 == NaN : x1 , y1 = x12 , y12 elif y12 == NaN : x1 , y1 = x11 , y11 else : x1 , y1 = ( x11 + x12 ) / 2 , ( y11 + y12 ) / 2 # Get body height height = ( ( x0 - x1 ) ** 2 + ( y0 - y1 ) ** 2 ) ** ( 0.5 ) return height