This repository contains code for computing cortical magnification factor (CMF) and generating analysis results based on planar retinotopic maps. 📄 View the PDF
root/
├── codes/
├── data/ # Place downloaded data here
├── HCP_data/ # preprocessed HCP data
├── NYU_data/ # preprocessed HCP data
├── v1v2v3lh.mat # HCP surface information
├── v1v2v3rh.mat # HCP surface information
├── result/ # Place for results
├── README.md
Download the required dataset from the following link:
Place the unzipped data/ folder next to the codes/ folder (i.e., as a sibling directory in the repository root) as shown above.
Launch MATLAB and add all subdirectories inside the codes/ folder to the path:
addpath(genpath('codes'));To run the full pipeline and generate all result files, execute the following script in MATLAB:
run('codes/GenResults_All.m');To compute the cortical magnification factor (CMF) and other key visualizations:
run('codes/GenFigure_CMF_HCP.m');This script will generate CMF maps and associated analysis results.
- The scripts are tested on MATLAB 2022b or later.
- If you encounter path or file errors, double-check that the folder layout matches the structure above.
This project is released under the MIT License.