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