-
Notifications
You must be signed in to change notification settings - Fork 145
Add FastSurfer-CC to the FastSurfer repository #727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ClePol
wants to merge
50
commits into
Deep-MI:dev
Choose a base branch
from
ClePol:dev
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
0fdb284
added corpus callosum module
ClePol 0c0ab6e
updated requirements and removed mri_cc from recon-surf
ClePol 2ac9fe7
updated requirements, formatting, cleanup
ClePol 01c6000
formatting and requirements fixes
ClePol 6962f0a
fix typo in comment
m-reuter ef6a7b5
fixed spelling in comments
ClePol 89c4e5b
added checkpoint donwloading
ClePol 826844c
added writing soft labels
ClePol 374a2d7
cc painting script for reconsurf integration
ClePol d2061f3
added midslice based 3D subsegmentation in orig space outputs
ClePol baeb35e
updated README and paths
ClePol 603ff8f
added partial volume corrected volume calculation, error messages and…
ClePol 4af9dc2
sphinx doc build and license
ClePol 9cac82c
fix typos
m-reuter b17ca18
added doc files for sphinx
ClePol 9bfdd09
bugfixes for hires images, README updates, error handling
ClePol d6009ec
improved contour extraction for thin CC and surface coordinates
ClePol d3356d8
fixed freesurfer surface conversion and scaling issues
ClePol 0f5e00d
docstrings, typehints and small bugfixes
ClePol 6c69367
cleaned up stats writing
ClePol 039d071
added consolidation strategy with WM and ventricle labels
ClePol 08d1e18
edited variable names
ClePol cdc47f8
FastSurfer style weights loading + removed superflous plot
ClePol 84c6193
recon-surf integration with FastSurferCNN label consolidation
ClePol d09083c
updated commandline interface
ClePol 2f187ea
Various documentation and formatting changes as well as optimizations…
dkuegler 2811ddf
Fixes broken by history rewrite (merge => rebase)
dkuegler 727fc6c
Fixing problems introduced by incomplete changes in review
dkuegler eb43eba
rename files and standardize file names
dkuegler 4651fb2
Fix doc build errors and ruff optimization codes
dkuegler 726bb00
updated helptexts & formatting
ClePol 83f2fe6
documentation and review comments
ClePol 79e9f95
updated logging in paint_cc_into_pred and added missing docfiles
ClePol 02186e5
Improve the left_right masking.
dkuegler ddb174c
Fix countours spelling error
dkuegler bd78d56
Fix the CorpusCallosum documentation
dkuegler 40308b4
Remove --qc_output_dir and related functionality to simplify the fast…
dkuegler 33628b8
file renaming, removed unused code, documentation update
ClePol a17b018
fixed commandline texts, parameter and absolute paths
ClePol 77bd663
Rewrite of CCIndex, fixed middle slice selection argument, helptext
ClePol e7c7544
Fix AC-PC localization
dkuegler 5c315cc
Various fixes to CC generation (messages to be edited)
dkuegler 12506df
Fix docstrings and formatting in mesh.py
dkuegler 51ad1a1
Fix ruff errors
dkuegler 4ac7a2d
updated helptext
ClePol 2bbff12
split cc_mesh class into cc_mesh and cc_contour
ClePol 496c462
updated cc visualization script with cleaner interface to Mesh, Conto…
ClePol 85d3675
cleaned up visualization script logic, removed unused CC contour code…
ClePol 471e112
Lots of changes
dkuegler c100efc
- Fix ruff and documentation errors
dkuegler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Corpus Callosum Pipeline | ||
|
|
||
| A deep learning-based pipeline for automated segmentation, analysis, and shape analysis of the corpus callosum in brain MRI scans. | ||
| Also segments the fornix, localizes the anterior and posterior commissure (AC and PC) and standardizes the orientation of the brain. | ||
|
|
||
| For detailed documentation, please refer to: | ||
| - [Module Overview](../doc/overview/modules/CC.md): Detailed description of the pipeline, workflow, and analysis options. | ||
| - [Output Files](../doc/overview/OUTPUT_FILES.md#corpus-callosum-module): List of output files and their descriptions. | ||
|
|
||
| ## Quickstart | ||
|
|
||
| ```bash | ||
| python3 fastsurfer_cc.py --sd /path/to/fastsurfer/output --sid test-case --verbose | ||
| ``` | ||
|
|
||
| Gives all standard outputs. The corpus callosum morphometry can be found at `stats/callosum.CC.midslice.json` including 100 thickness measurements and the areas of sub-segments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Copyright 2025 AI in Medical Imaging, German Center for Neurodegenerative Diseases(DZNE), Bonn | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| __all__ = [ | ||
| "data", | ||
| "segmentation", | ||
| "transforms", | ||
| "utils", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.