Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 Filling holes in a hippocampal volume
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ch186
New Member

20 Posts

Posted - Jan 06 2011 :  10:53:11 AM  Show Profile  Reply with Quote
I have a hippocampus that was segmented from FreeSurfer. I noticed when opening the volume in FSL that there are a few small holes in the structure. What would be the best method to fill these holes? Is there a simple way using FSL or MATLAB? I need to fill the holes to do shape analysis with SPHARM-PDM.

Thanks!

petty
BIAC Staff

USA
453 Posts

Posted - Jan 06 2011 :  3:50:04 PM  Show Profile  Reply with Quote
depending on how large the holes are you could write a script that cycles through all the zero voxels, and if a bunch of the neighboring voxels are non-zero replace the value of the empty
Go to Top of Page

ch186
New Member

20 Posts

Posted - Jan 06 2011 :  4:20:54 PM  Show Profile  Reply with Quote
Thanks Chris. I ended up finding a slightly different way to fill in the holes. I'll post it in case anyone needs it later.

I started with my hippocampus volume that had intensity 1 for the hippocampus and 0 for everything else (holes and background).
-Created an inverted mask where the holes/background are 1 and hippocampus is 0.
-Use fsl "cluster" command to create a cluster index map
-Remove the "background cluster" from the cluster index volume.
-Add the cluster map and the original image together.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.42 seconds. Snitz Forums 2000