[Insight-users] How to wrap "mini pipeline" in a composite filter?

HIRAKI Hideaki hhiraki at lab.nig.ac.jp
Tue, 20 Jan 2004 19:43:42 +0900


----Next_Part(Tue_Jan_20_19:26:50_2004_91)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

Many thanks to Miller, James V (Research) and Luis Ibanez 
(http://www.itk.org/pipermail/insight-users/2003-December/005796.html), 
I can get a 4D image from a series of 3D image. The attached 
is my trial to make a filter for this task. As it seemed hard 
to implement a real filter that does what Luis suggested, I 
took the easier way to wrap the pipeline Jim suggested. The 
code is working now. But I have two questions.


Q1) Are there examples to show how to wrap mini-pipelines in 
    a composite filter?

I guess the filter delegating image processing to its inner filters 
may be a general pattern in ITK and someone has better practices.


Q2) Why itk::LightObject::PrintSelf() isn't public?

PrintSelf() is protected and it's impossible to build PrintSelf() 
from the component objects with proper indentation.


Thanks in advance,

Hideaki Hiraki

----Next_Part(Tue_Jan_20_19:26:50_2004_91)--
Content-Type: application/x-zip-compressed
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="itkJoinSeries.zip"

UEsDBBQAAAAIAIaaNDCa0Z77KgUAAIEPAAAaABUAaXRrSm9pblNlcmllc0ltYWdlRmlsdGVy
LmhVVAkAA9wADUDeAA1AVXgEAPYBZAC1V21v2zgM/u5fQWxFkXRdgvuadgNyfdl81yZB7N5u
wIDCsZlEN1syJDlZMWy//UjZTpzMya7Azl8Siw/JRxRJ0f2zN7/q8TyAiVYLHWUDAPClEYul
hQAXGUobWaEknMIUF8JYXb6GSqWfhSXFe5UUKbIenEyvgrlI8YSW7yK5KKIFC65evaKF68iW
KMLxfwb9hdqQtYHTxZXglxNmc6XyJ+1IdOLulpCa23WkkcTSKG1FkfVgmKbgoAY0GtQrTHpk
IUAEP/xzY6hnv1hQGpbW5oN+f71e94T93FN60X8f3t/1t8ClzWBOyARtJFLTYz70hEthwNQM
6H/C0RCzwmICH/zw/fghhOHoI3wYTqfDUfjxAtbCLlVhAV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