In a previous conversation with @jcohenadad and @tomDag25 we mentioned that when removing lesions outside of the spinal cord, the spinal cord mask should be dilated by 2mm on the axial plane.
I am wondering how to implement this since, sct_maths -dilate
only takes an integer as input. Am I missing something? Is there an efficient way of doing it?
Tagging @mguaypaq and @joshuacwnewton for their input.