Skip to content
Snippets Groups Projects
Commit f5c84181 authored by Loic Marx's avatar Loic Marx
Browse files

WIP: compute centroid of CT and Expanded brain mask

parent e9b33adb
No related branches found
No related tags found
2 merge requests!3Regular merge of develop,!2Seeg algorithm
......@@ -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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment