[Insight-developers] itkPointQueue class
yj76@columbia.edu
yj76@columbia.edu
Thu, 18 Jan 2001 15:33:16 -0500 (EST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-851401618-979849996=:25343
Content-Type: TEXT/PLAIN; charset=US-ASCII
Thanks, Luis,
pls find attached files,
this class is a small part of our segmentation algorithm, it is designed
as a standard queue that stores the coordinate of pixels (which I am using
an inherient from itkPoint).
If you can, please also answer my compiling questions. Thanks.
Yinpeng
---559023410-851401618-979849996=:25343
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="itkPointQueueTest.cpp"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.10.10101181533150.25343@merhaba.cc.columbia.edu>
Content-Description:
Content-Disposition: attachment; filename="itkPointQueueTest.cpp"
I2luY2x1ZGUgIml0a1BvaW50UXVldWUuaCINDQojaW5jbHVkZSA8Y3N0ZGlv
Pg0NCg0NCmludCBtYWluKHZvaWQpew0NCglpdGs6OlBvaW50UXVldWU8Mixp
bnQ+IHRlc3RxdWV1ZTsNDQoJaW50IGk7DQ0KCWludCBkYXRhWzJdOw0NCg0N
Cglmb3IoaT0wO2k8MTA7aSsrKXsNDQoJCWRhdGFbMF09aTsNDQoJCWRhdGFb
MV09MTAqaTsNDQoJCXRlc3RxdWV1ZS5RaW5zZXJ0KGRhdGEpOw0NCgl9DQ0K
DQ0KCWZvcihpPTA7aTwxMDtpKyspew0NCgkJdGVzdHF1ZXVlLlFkZWxldGUo
ZGF0YSk7DQ0KLy8JCXN0ZDo6cHJpbnRmKCIlaSAlaVxuIixkYXRhWzBdLGRh
dGFbMV0pOw0NCgl9DQ0KDQ0KICAgIHJldHVybiAxOw0NCn0=
---559023410-851401618-979849996=:25343
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="itkPointQueue.h"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.10.10101181533151.25343@merhaba.cc.columbia.edu>
Content-Description:
Content-Disposition: attachment; filename="itkPointQueue.h"
Lyo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQ0KDQ0KICBQcm9ncmFt
OiAgIEluc2lnaHQgU2VnbWVudGF0aW9uICYgUmVnaXN0cmF0aW9uIFRvb2xr
aXQNDQogIE1vZHVsZTogICAgJFJDU2ZpbGU6IGl0a1BvaW50UXVldWUuaCx2
ICQNDQogIExhbmd1YWdlOiAgQysrDQ0KICBEYXRlOiAgICAgICREYXRlOiAy
MDAxLzEvMTcgMjE6NTA6NDggJA0NCiAgVmVyc2lvbjogICAkUmV2aXNpb246
IDEuMCAkDQ0KDQ0KDQ0KICBDb3B5cmlnaHQgKGMpIDIwMDAgTmF0aW9uYWwg
TGlicmFyeSBvZiBNZWRpY2luZQ0NCiAgQWxsIHJpZ2h0cyByZXNlcnZlZC4N
DQoNDQogIFNlZSBDT1BZUklHSFQudHh0IGZvciBjb3B5cmlnaHQgZGV0YWls
cy4NDQoNDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ki8NDQojaWZu
ZGVmIF9pdGtQb2ludFF1ZXVlX2gNDQojZGVmaW5lIF9pdGtQb2ludFF1ZXVl
X2gNDQoNDQojaW5jbHVkZSAiaXRrUG9pbnQuaCINDQojaW5jbHVkZSAiaXRr
T2JqZWN0LmgiDQ0KI2luY2x1ZGUgPGNzdGRpbz4NDQoNDQpuYW1lc3BhY2Ug
aXRrDQ0Kew0NCg0NCi8qKiBDbGFzcyBQb2ludFF1ZXVlDQ0KICogUXVldWUg
U3RydWN0dXJlIGZvciBzdG9yaW5nIGEgcG9pbnQNDQogKi8NDQoNDQovKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqLw0NCnRlbXBsYXRl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oNDQoNDQoN
DQogIA==
---559023410-851401618-979849996=:25343
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="itkPointQueue.txx"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.10.10101181533160.25343@merhaba.cc.columbia.edu>
Content-Description:
Content-Disposition: attachment; filename="itkPointQueue.txx"
Lyo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQ0KDQ0KICBQcm9ncmFt
OiAgIEluc2lnaHQgU2VnbWVudGF0aW9uICYgUmVnaXN0cmF0aW9uIFRvb2xr
aXQNDQogIE1vZHVsZTogICAgJFJDU2ZpbGU6IGl0a1BvaW50UXVldWUudHh4
LHYgJA0NCiAgTGFuZ3VhZ2U6ICBDKysNDQogIERhdGU6ICAgICAgJERhdGU6
IDIwMDEvMS8xNyAyMTo1MDo0OCAkDQ0KICBWZXJzaW9uOiAgICRSZXZpc2lv
bjogMS4wICQNDQoNDQoNDQogIENvcHlyaWdodCAoYykgMjAwMCBOYXRpb25h
bCBMaWJyYXJ5IG9mIE1lZGljaW5lDQ0KICBBbGwgcmlnaHRzIHJlc2VydmVk
Lg0NCg0NCiAgU2VlIENPUFlSSUdIVC50eHQgZm9yIGNvcHlyaWdodCBkZXRh
aWxzLg0NCg0NCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0qLw0NCiNp
bmNsdWRlICJpdGtQb2ludFF1ZXVlLmgiDQ0KI2luY2x1ZGUgPGNzdGRpbz4N
DQoNDQpuYW1lc3BhY2UgaXRrDQ0Kew0NCg0NCi8qKg0NCiAqDQ0KICovDQ0K
dGVtcGxhdGUgPGludCBWUG9pbnREaW1lbnNpb24sdHlwZW5hbWUgVENvb3Jk
UmVwPg0NClBvaW50UXVldWU8VlBvaW50RGltZW5zaW9uLFRDb29yZFJlcD4N
DQo6OlBvaW50UXV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