Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!z25g2000vbn.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Determine which points of a grid belong to a certain volume
Date: Thu, 14 Oct 2010 09:36:23 -0700 (PDT)
Organization: http://groups.google.com
Lines: 7
Message-ID: <4cb7bb1d-3f89-4ccc-beb1-75920f73cd63@z25g2000vbn.googlegroups.com>
References: <i9743g$jip$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1287074183 9361 127.0.0.1 (14 Oct 2010 16:36:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 14 Oct 2010 16:36:23 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: z25g2000vbn.googlegroups.com; posting-host=192.44.136.113; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10)
 Gecko/20100914 Firefox/3.6.10,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:678488

Andreas:
That is done by a morphological dilation.
http://en.wikipedia.org/wiki/Dilation_%28morphology%29
You just need to set up the kernel that defines the ellipsoid, and
draw your path into your volume (set those pixels to 1), and then call
imdilate().
-ImageAnalyst