def GetAnchorTuple(anchor):
    """
    Returns height, width and center coordinates for an anchor.
    """
    h = anchor[3] - anchor[1] + 1
    w = anchor[2] - anchor[0] + 1
    ctr_x = anchor[0] + 0.5*(w-1)
    ctr_y = anchor[1] + 0.5*(h-1)
    return w, h, ctr_x, ctr_y