<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=467074217-07112005><FONT face=Arial color=#0000ff
size=2>Isabelle, </FONT></SPAN></DIV>
<DIV><SPAN class=467074217-07112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=467074217-07112005><FONT face=Arial color=#0000ff size=2>Are
you inheriting from ExtractImageFilter or are you merely calling
ExtractImageFilter internally to your filter? If you are inheriting from
ExtractImageFilter, then you may be able to use the implementations provided by
ExtractImageFilter. If you are just calling ExtractImageFilter internally,
then your filter must provide these pipeline methods so that it behaves properly
within the context of the</FONT></SPAN></DIV>
<DIV><SPAN class=467074217-07112005><FONT face=Arial color=#0000ff
size=2>pipeline.</FONT></SPAN></DIV>
<DIV><SPAN class=467074217-07112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=467074217-07112005><FONT face=Arial color=#0000ff
size=2>Jim</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
insight-users-bounces+millerjv=crd.ge.com@itk.org
[mailto:insight-users-bounces+millerjv=crd.ge.com@itk.org]<B>On Behalf Of
</B>Renaud Isabelle<BR><B>Sent:</B> Monday, November 07, 2005 12:14
PM<BR><B>To:</B> insight-users@itk.org<BR><B>Subject:</B> [Insight-users] how
to define a filter's output smaller than input<BR><BR></FONT></DIV>
<DIV>Hi, </DIV>
<DIV> </DIV>
<DIV>I would like to define my own ExtractImageFilter, calling the
itk::ExtractImageFilter inside.</DIV>
<DIV> </DIV>
<DIV>I thought that I just have to call itkExtractImageFilter inside my
GenerateData() method and graft the output, but I got errors at execution: it
seems that I have to override some functions to specify <STRONG>that my output
data is 2D whereas my input is of size 3D. </STRONG></DIV>
<DIV> </DIV>
<DIV>Could you tell me which functions I have to override. </DIV>
<DIV> </DIV>
<DIV> - virtual void
GenerateInputRequestedRegion();<BR> - virtual void
EnlargeOutputRequestedRegion(DataObject *output);</DIV>
<DIV> - virtual void GenerateOutputInformation()</DIV>
<DIV> </DIV>
<DIV>??</DIV>
<DIV> </DIV>
<DIV>As theses functions are already implemented in itkExtractImageFilter, I
thought I don't have to override them, but apparently I am wrong. </DIV>
<DIV> </DIV>
<DIV>please help me,</DIV>
<DIV> </DIV>
<DIV>Isabelle</DIV>
<P>
<HR SIZE=1>
<B><FONT color=#ff0000>Appel audio GRATUIT</FONT> partout dans le monde</B>
avec le nouveau Yahoo! Messenger<BR><A
href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez
le ici !</A> </BLOCKQUOTE></BODY></HTML>