Hello, Registering a binary mask to a different space will probably result in some voxels with fractional intensities using the default interpolation method. The default kernel is 3x3x3, which will, in conjunction with a dilation option, result in a dilation with a one voxel extent. Kind Regards Matthew > I had forgot to binaries my mask. I didn't know that after registering a binary mask to an other space its not binary any more. > Does the default kernel dilate the mask by one voxel? > > Best, > Mohamad > > On Mon, Jan 25, 2016 at 6:56 PM, mohamad reza khodaei <[log in to unmask]> wrote: > Thanks for your response. > > you used the command below? > > fslmaths roi.nii.gz -kernel 3D -dilM dilateROI.nii.gz > > For me, it create an output which is exactly the same with the input! > I want my ROI to be dilated by one voxel. > > Best, > Mohamad > > > > > On Mon, Jan 25, 2016 at 4:34 PM, Matthew Webster <[log in to unmask]> wrote: > Hello, > The command below worked for me on a test image - how does it fail on your data? > > Kind Regards > Matthew > >> Thanks for your response >> >> I tried -dilM but it didn't worked, which kernel should i use to have dilation by 1 voxel? >> i tried: >> fslmaths roi.nii.gz -kernel 3D -dilM dilateROI.nii.gz >> >> any idea? >> >> best >> mohamad >> >> On Tue, Jan 19, 2016 at 8:30 PM, Matthew Webster <[log in to unmask]> wrote: >> Hello, >> fslmaths with one of the -dilM,-dilD,-dilF options should do the job. >> >> Kind Regards >> Matthew >> >> > Dear experts, >> > >> > How can i dilate a ROI by one voxel? >> > >> > Best regards >> >> >> >> -- >> Mohammad Reza Khodaei >> M.Sc. student of Biomedical Engineering, >> School of medicine, >> Shahid Beheshti university, >> Tehran, Iran > > > > > -- > Mohammad Reza Khodaei > M.Sc. student of Biomedical Engineering, > School of medicine, > Shahid Beheshti university, > Tehran, Iran > > > > -- > Mohammad Reza Khodaei > M.Sc. student of Biomedical Engineering, > School of medicine, > Shahid Beheshti university, > Tehran, Iran