Skip to content

Geometric-Retinotopy-Research/Planar-CMF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Planar-CMF

This repository contains code for computing cortical magnification factor (CMF) and generating analysis results based on planar retinotopic maps. 📄 View the PDF

Directory Structure

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

Step 1: Download Data

Download the required dataset from the following link:

Example HCP preprocessed data

Place the unzipped data/ folder next to the codes/ folder (i.e., as a sibling directory in the repository root) as shown above.


Step 2: Set Up Dependencies in MATLAB

Launch MATLAB and add all subdirectories inside the codes/ folder to the path:

addpath(genpath('codes'));

Step 3: Generate Results

To run the full pipeline and generate all result files, execute the following script in MATLAB:

run('codes/GenResults_All.m');

Step 4: Compute CMF and Generate Output Figures

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.


Notes

  • 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.

📄 License

This project is released under the MIT License.

About

Matlab Code base for Planar CMF measurement

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors