Hello, I am using some MRI data that were used in Deep Brain Stimulation study. Now due to electrodes there are gaps in cortical section/skull in the images. Now for my purpose I would like to fill those missing skull sections and tissues with nearest/adjacent ones.
How can I do that in slicer 3D?
I am a beginner in 3D Slicer, would really appreciate the help.
Thanks in advance
Normally you don’t need to create such “fake” images. Instead, you can check that the image processing operation that you use can accept a mask as input (e.g., it is very common for registration algorithms to allow mask images to constrain where image samples are taken from).
If you are sure you must create such modified images you can do the followings: Change voxel values in the electrodes area to some extremely low values (e.g., using Mask Volume effect provided by segmentEditorExtraEffects) then apply Median Image Filter with large enough neighborhood to fill all the blanks. After that, you can combine the original and hole-filled image using numpy as described here.