cortex.surfinfo.flat_border

cortex.surfinfo.flat_border(outfile, subject)[source]

Compute the boundary of the flatmap as a set of line segments, split into segments that lie along the medial wall and segments that don’t, and save the result to outfile.

Parameters:
outfilestr

Path where the border map will be saved as an npz file, with lines (a list of boundary line segments, each an array of 2D points) and ismwalls (a boolean flag for each segment indicating whether it lies along the medial wall) arrays.

subjectstr

Subject in the pycortex database for whom the flatmap border will be computed.