Skip to content

Conversation

@ClePol
Copy link
Member

@ClePol ClePol commented Sep 17, 2025

This PR contains corpus callosum segmentation, head pose normalization and corpus callosum analysis modules.

This is work in progress. Integration in the run_fastsurfer.sh script is pending, and weights are not online yet.

@ClePol
Copy link
Member Author

ClePol commented Sep 26, 2025

All required features should be present at right now. I'm still running tests - in the meanwhile we can move forward with the --seg_only integration.

@m-reuter m-reuter marked this pull request as ready for review September 26, 2025 14:17
@m-reuter m-reuter requested a review from Copilot September 26, 2025 14:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds FastSurfer-CC, a comprehensive corpus callosum segmentation, head pose normalization, and analysis module to the FastSurfer repository. The implementation includes deep learning models for AC/PC localization and CC segmentation, along with detailed morphometric analysis capabilities.

  • Deep learning-based AC/PC localization and corpus callosum segmentation pipeline
  • Comprehensive morphometric analysis with thickness measurements and shape metrics
  • Interactive 3D visualization and surface mesh generation capabilities

Reviewed Changes

Copilot reviewed 40 out of 49 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
requirements.mac.txt Adds new dependencies for mesh processing and visualization
recon_surf/recon-surf.sh Updates CC processing path and comments out old commands
recon_surf/align_points.py Adds verbose parameter and debugging output to rigid alignment function
pyproject.toml Adds corpus callosum dependencies to project configuration
env/fastsurfer.yml Adds conda environment dependencies for mesh processing
doc/conf.py Updates documentation to include corpuscallosum module
doc/api/*.rst Adds API documentation for new CorpusCallosum modules
FastSurferCNN/download_checkpoints.py Integrates CC model checkpoint downloading
Docker/build.py Adds logging improvements for docker build process
CorpusCallosum/* Complete corpus callosum analysis implementation with segmentation, localization, and shape analysis

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@dkuegler dkuegler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an incomplete review :( it is currently 250 comments long, but a lot are minor changes that are just having to be applied ... I will do that myself.

dkuegler

This comment was marked as duplicate.

@dkuegler dkuegler force-pushed the dev branch 3 times, most recently from 92f81b1 to 8ee1f0b Compare November 12, 2025 01:38
@dkuegler dkuegler force-pushed the dev branch 4 times, most recently from 9232375 to fc81092 Compare November 20, 2025 11:59
ClePol and others added 27 commits December 11, 2025 12:56
resolving several issues from the review, like using concurrent.futures.*
Cleanup, optimizations and formatting (e.g. variable names)
change the default settings of various output files to lighter default settings while keeping the ability to have those outputs, e.g. for qc output.
rename, standardize and improve "meaningfulness" of variable names
Update typing and docstrings
Remove unwanted extra empty lines and debugging plots (comments)
Use suppress_stdout from FastSurfer (which uses redirect_stdout) instead of the new implementation HidePrints
add and optimize parallelization across multiple files (halfs processing time of fastsurfer-cc.py)
move some constant values from various files into constants or just use the constants that were already available
fix several functions broken by myself in review or other commits
make plotly html plots use cdn-delivered javascript to significantly reduce he size of files
Remove redundant function parts in recon_cc_surf_measures_multi
Reorder arguments in recon_cc_surf_measure
Integrate FastSurferCC into run_fastsurfer, create stats files of updated aseg and asegdkt
Update on-demand execution of FastSurferCC in recon-surf
Add additional option to also reduce asegdkt to aseg in paint_cc_into_pred
Fix typos in typing and docstrings
improve type annotations of brainvolstats.
Fix CC measure computation
Fix conform check in paint_cc_in_pred
…surfer_cc.py CLI interface and internal code complexity.
update plotting in localization of ac pc
…ur, fsaverage. Fixed multithreading bug. Documentation
- Add types with documentation
- Move contour documentation into contour module
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.

3 participants