Read one of the Thompson lab's retinal datasets. Each dataset is a folder containing a SYS file in SYSTAT format and a MAP file in text format. The SYS file specifies the locations of the data points and the MAP file specifies the outline.
idt.read.dataset(dataset, report = message, d.close = 0.25)
Path to directory containing as SYS and MAP file
Function to report progress
Maximum distance between points for them to count as the same point. This is expressed as a fraction of the width of the outline.
The path to the directory given as an argument
List containing
map
The raw MAP data
sys
The raw SYS data
The points of the outline
Forward pointers along the outline
Backward pointers along the outline
List of datapoints
List of landmark lines
The function returns the outline of the retina. In order to do so,
it has to join up the segments of the MAP file. The tracings are
not always precise; sometimes there are gaps between points that
are actually the same point. The parameter d.close
specifies
how close points must be to count as the same point.