Hello,
Is there a way to perform a 3D morphological closing operation (i.e.,
dilation followed by erosion) from within SPM?
In particular, I want to create a "brain" mask in subject space defined
by thresholding the sum of c1+c2+c3 from Segment, and then clean up that
mask a little bit (in an automated fashion) through morphological
closing and filling. Initially I thought I could accomplish this using
an appropriately constructed expression in ImCalc by taking advantage of
Matlab's 'imclose' and 'imfill' functions. However, spm_imcalc.m
appears to perform all calcs in a plane-by-plane manner. Thus any
3D morphological component in the expression in ImCalc will be
ignored, and a 2D operation will be performed (since only a 2D input is
available at each evaluation).
Is there a way around this within SPM? Or some other mechanism/function
for "cleaning" up a mask defined by c1+c2+c3?
I could of course do the operation in Matlab outside of SPM's functions,
but my first inclination is to try to accomplish it within SPM to keep the
overall scripting simpler.
thanks,
-Mike H.
--
Michael Harms, Ph.D.
--------------------------------------------------------------------
Conte Center for the Neuroscience of Mental Disorders
Washington University School of Medicine
Department of Psychiatry, Box 8134
Renard Hospital, Room 6604 Tel: 314-747-6173
660 South Euclid Ave. Fax: 314-747-2182
St. Louis, MO 63110 Email: [log in to unmask]
--------------------------------------------------------------------
|