<!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.3790.1830" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using a TileFilter to build a 4D image
of several 3D frames.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I create the tile filter like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>
<P>TileType::Pointer tileFilter = TileType::New();</P>
<P>TileType::LayoutArrayType layout;</P>
<P>layout[0] = 1;</P>
<P>layout[1] = 1;</P>
<P>layout[2] = 1;</P>
<P>layout[3] = 0;</P>
<P>tileFilter->SetLayout( layout );</P>
<P><FONT face=Arial>Then, for each frame i do:</FONT></P><FONT face=Arial><FONT
size=2>
<P>tileFilter->SetInput(someFilter->GetOutput());</P>
<P>tileFilter->PushBackInput(someFilter->GetOutput()));</P>
<P>and after 10 frames I write to a META file like:</P><FONT size=2>
<P>WriterType::Pointer w = WriterType::New();</P>
<P>w->SetInput(tileFilter->GetOutput());</P>
<P>w->SetFileName(</FONT><FONT color=#800000
size=2>"4dvolume.mhd"</FONT><FONT size=2>);</P>
<P>w->Update();</P></FONT>
<P>but somehow the resulting file has 11 frames instead of 10. Particularly is
weird that the frame with index 0 of the file is same frame that
the last one. So that 3D image appears twice: at the end and at
the beginning.</P>
<P>The first frame appears with index 1. </P>
<P>Any clue about this?</P>
<P>Thanks </P></FONT></FONT></FONT></DIV></BODY></HTML>