Skip to content

Conversation

@mvdoc
Copy link
Contributor

@mvdoc mvdoc commented Dec 19, 2025

Summary

  • Add test script to compare using FreeSurfer's native medial wall (from aparc.a2009s.annot) vs projecting from fsaverage
  • Includes medial view visualization, topology checking, and optional morphological smoothing

Status

Work in progress - smoothing approach needs refinement. Not a priority.

Usage

# Plot medial wall comparison only (fast)
python scripts/test_native_medial_wall.py /path/to/subject --hemi lh --plot-only

# Plot with smoothing
python scripts/test_native_medial_wall.py /path/to/subject --hemi lh --plot-only --smooth-mwall

🤖 Generated with Claude Code

Script to compare using FreeSurfer's native medial wall (from aparc.a2009s.annot)
vs projecting from fsaverage. Includes:
- Native medial wall extraction from annotation files
- Topology checking (single connected component)
- Morphological smoothing (erosion + dilation)
- Medial view visualization
- Full flattening comparison (optional)

Note: Smoothing approach needs refinement - current morphological operations
may not produce ideal results for all subjects.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants