def point_interval(ref_features, sec_features, disp):
    """
    Computes the range of points over which the similarity measure will be applied

    :param ref_features: reference features
    :type ref_features: Tensor of shape (64, row, col)
    :param sec_features: secondary features
    :type sec_features: Tensor of shape (64, row, col)
    :param disp: current disparity
    :type disp: float
    :return: the range of the reference and secondary image over which the similarity measure will be applied
    :rtype: tuple
    """
    _, _, nx_ref = ref_features.shape
    _, _, nx_sec = sec_features.shape

    # range in the reference image
    left = (max(0 - disp, 0), min(nx_ref - disp, nx_ref))
    # range in the secondary image
    right = (max(0 + disp, 0), min(nx_sec + disp, nx_sec))

    return left, right