(points_x, points_y, boxes)
return x_within & y_within
Validate which kes are contained inside a given box.
    points: NxKx2
    boxes: Nx4
    output: NxK
Validate which kes are contained inside a given box.
    points: NxKx2
    boxes: Nx4
    output: NxK
Validate which kes are contained inside a given box . points : NxKx2 boxes : Nx4 output : NxK
def _within_box(points_x, points_y, boxes):
    """Validate which kes are contained inside a given box.
    points: NxKx2
    boxes: Nx4
    output: NxK
    """
    x_within = (points_x[..., :, 0] >= boxes[:, 0, None]) & (points_x[..., :, 0] <= boxes[:, 2, None])
    y_within = (points_y[..., :, 0] >= boxes[:, 1, None]) & (points_y[..., :, 0] <= boxes[:, 3, None])
    return x_within & y_within
def _within_box ( points_x , points_y , boxes ) : x_within = ( points_x [ ... , : , 0 ] >= boxes [ : , 0 , None ] ) & ( points_x [ ... , : , 0 ] <= boxes [ : , 2 , None ] ) y_within = ( points_y [ ... , : , 0 ] >= boxes [ : , 1 , None ] ) & ( points_y [ ... , : , 0 ] <= boxes [ : , 3 , None ] ) return x_within & y_within