I would like to ask a very simple question- how does sct_maths -dilate work on a binary cord segmentation?
I have binary cord segmentation, I would like to dilate it a certain amount and I leave the default options for sct_maths dilate.
For some of my slices, it works like the following (white is original, blue is dilated by 3):
Apologies in advance if I am missing something very obvious!
Thank you very much!
Merve
However, for some other slice, the dilated mask looks like this:
I am wondering why sometimes the dilation sometimes look 'non-'uniform like in the last example?
The command indicates that you asked for a dilation with an isotropic kernel of 3 voxels, which means that the voxels with value 1 will be dilated by 3 voxels along X, Y, and Z.
Look at a sagittal view of your mask:
Given the thick axial slices of your scans and the curvature of the spinal cord, you see how dilation produces the result you observed.