Hi Ed, the dev version of mri_morphology will do this:
mri_morphology <input vol> fill_holes 26 <output vol> where the 26 specifies the min # of nbrs that must be on for the output voxel to be set to 1 cheers Bruce On Fri, 30 Sep 2011, Ed Gronenschild wrote: > Hi, > > I'm looking for a tool to fill holes of only 1 voxel in size > in a binary mask. > I posted this also to the FSL mailing list but none of the > suggested solutions could do this or were robust enough. > > Ed > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer > > > _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.