[Insight-users] 3D Fastmarching segmentation!

xujf xujf at sjtu.edu.cn
Mon, 12 Apr 2004 21:08:18 +0800 (BEIST)


This is a multi-part message in MIME format.

----=_SkyMiracle_WorldPost_1081775298_=
Content-Type: text/plain;
       charset="gb2312"
Content-Transfer-Encoding: base64

SGksYWxsOg0KICAgSSB1c2UgaXRrRmFzdE1hcmNoaW5nSW1hZ2VGaWx0ZXIgdG8gaW1wbGVt
ZW50IHRoZSBzZWdtZW50YXRpb24uIEkgY2FuIGRvIHRoZSBzZWdtZW50YXRpb24gd2VsbCBp
biAyRCBpbWFnZSwNCnRoZSByZXN1bHQgaW1hZ2UgaXMgdmVyeSBuaWNlLiBJIGNoYW5nZSBt
eSAyRCBzZWdtZW50YXRpb24gY29kZSBhIGxpdHRsZSBpbiBvcmRlciB0byBnZXQgdGhlIDNE
IHNlZ21lbnRhdGlvbi4NCmhvd2V2ZXIsSSBjYW5cJ3Qgc2VlIHNlZ21lYW55dGhpbmcgaW4g
bnRhdGlvbiBpbWFnZQ0KbXkgY29kZSBpcyA6KHNlZSBhZmZpeCBpZiBuZWVkIGNvZGUgaW4g
ZGV0YWlsKQ0KLi4uLi4uLi4uLi4uLi4uLi4uLi4uDQouLi4uLi4uLi4uLi4uLi4uLi4uLi4N
Cml0a2N1cmZpbHRlcj1pdGsuaXRrQ3VydmF0dXJlQW5pc290cm9waWNEaWZmdXNpb25JbWFn
ZUZpbHRlckYzRjNfTmV3KCkNCml0a2dyYWRmaWx0ZXI9aXRrLml0a0dyYWRpZW50TWFnbml0
dWRlUmVjdXJzaXZlR2F1c3NpYW5JbWFnZUZpbHRlckYzRjNfTmV3KCkNCml0a3NpZ2ZpbHRl
cj1pdGsuaXRrU2lnbW9pZEltYWdlRmlsdGVyRjNGM19OZXcoKQ0KaXRrZmFzdG1hcmNoaW5n
ZmlsdGVyPWl0ay5pdGtGYXN0TWFyY2hpbmdJbWFnZUZpbHRlckYzRjNfTmV3KCkNCi4uLi4u
Li4uLi4uLi4uLi4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gNTEsIHRoZSByZXN1bHQgc2Vn
bWV0YXRpb24gaW1hZ2UgaXMgDQphcyBzYW1lIGFzIGJlZm9yZSx0aGF0IG1lYW5zIGxpbmU1
MCBhbmQgbGluZSA1MSBkb25cJ3Qgd29yay5JIGRvblwndCBrbm93IHdoYXRcJ3MNCndyb25n
IHdpdGggbXkgY29kZS5pcyB0aGVyZSBhbnkgb3RoZXIgcGFyYW1ldGVyIEkgc2hvdWxkIHNl
dCBpbiBpdGtGYXN0TWFyY2hpbmdJbWFnZUZpbHRlcj8NCg0KVGhhbmtzIGluIGFkdmFuY2Uh
DQp4dWpmIA==


----=_SkyMiracle_WorldPost_1081775298_=
Content-Type: text/plain;
       name="xu\'fastmarching.py"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
       filename="xu\'fastmarching.py"

aW1wb3J0IHN5cyxvcw0KaW1wb3J0IHBhdGhzDQppbXBvcnQgSW5zaWdodFRvb2xraXQgYXMg
aXRrDQpmcm9tIHZ0a01JTkNSZWFkZXIgIGltcG9ydCAqDQppbXBvcnQgQ29ubmVjdFZUS0lU
SyBhcyBjb25uZWN0DQoNCnJlYWRlcj12dGtNSU5DUmVhZGVyKCkNCnZ0a2V4cG9ydD12dGtJ
bWFnZUV4cG9ydCgpDQpyZWFkZXIuU2V0RmlsZU5hbWUoIkU6L2F0YW1haS8yMDAzLTAxLTI3
L2F0YW1haS9leGFtcGxlc1Btdy9zYnJhaW4ubW5jIikNCg0KY2FzdD12dGtJbWFnZUNhc3Qo
KQ0KY2FzdC5TZXRPdXRwdXRTY2FsYXJUeXBlVG9GbG9hdCgpDQpjYXN0LlNldElucHV0KHJl
YWRlci5HZXRPdXRwdXQoKSkNCg0KdnRrZXhwb3J0LlNldElucHV0KGNhc3QuR2V0T3V0cHV0
KCkpDQoNCml0a2ltcG9ydD1pdGsuaXRrVlRLSW1hZ2VJbXBvcnRGM19OZXcoKQ0KDQpjb25u
ZWN0LkNvbm5lY3RWVEtUb0lUS0YzKHZ0a2V4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