from typing import List
from typing import Tuple


def read_disparity(filename: str, i: int) -> List[Tuple[int, int, int, int]]:
    """
    reads content of disparity file.
    :param filename: name of GT file.
    :param i: index of file.
    :return: data points.
    """
    points = []
    with open(filename, 'r') as file:
        for line in file:
            line = line.split(' ')
            x = int(line[0])
            y = int(line[1])
            dx = int(line[2])
            points.append((i, x, y, dx))
    return points