Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
seeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
students
seeg
Commits
f5c84181
Commit
f5c84181
authored
5 years ago
by
Loic Marx
Browse files
Options
Downloads
Patches
Plain Diff
WIP: compute centroid of CT and Expanded brain mask
parent
e9b33adb
No related branches found
No related tags found
2 merge requests
!3
Regular merge of develop
,
!2
Seeg algorithm
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
expandBrainMask.m
+11
-1
11 additions, 1 deletion
expandBrainMask.m
with
11 additions
and
1 deletion
expandBrainMask.m
+
11
−
1
View file @
f5c84181
...
...
@@ -9,4 +9,14 @@ brainMaskImg = Brain_mask.img;
structEl
=
strel
(
'sphere'
,
3
);
expndBrainMask
=
imdilate
(
brainMaskImg
,
structEl
);
isosurface
(
expndBrainMask
);
\ No newline at end of file
isosurface
(
expndBrainMask
);
% compute the centroid of the CT to later map the electrode with the
% expanded brain Mask and get rid of the artefact far away from brain
stats_CT_post
=
regionprops
(
maskedImg
);
centroid_CT_post
=
stats_CT_post
.
Centroid
;
% compute the centroid of the expanded brain mask
stats_expndBrainMask
=
regionprops
(
expndBrainMask
);
centroid_expndBrainMask
=
stats_expndBrainMask
.
Centroid
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment