<DIV>Hi all,</DIV>  <DIV>&nbsp;</DIV>  <DIV>I need some help figuring out what the problem is with the piece of code pasted below. What I am trying to do is read the principal mode shape images (4.mha files)&nbsp;into the Geodesic Active Contour Shape Prior Level Set Image Filter.cxx. The files are named Modes_01 - Modes_04 and saved at the specified location. I'm not quite sure what is wrong but I get an error that says something about the vector length (???). </DIV>  <DIV>&nbsp;</DIV><FONT face="times new roman" size=1>  <DIV>std::vector&lt;InternalImageType::Pointer&gt; shapeModeImages( numberOfPCAModes );</DIV></FONT>  <DIV><FONT size=1><FONT face="times new roman"><FONT color=#0000ff>const</FONT> std::string FilePref = <FONT color=#800000>"C:\\Documents and Settings\\olasaki\\Desktop\\images\\results\\Modes_"</FONT>;</FONT></FONT></DIV>  <DIV><FONT size=1><FONT face="times new roman"><FONT color=#0000ff>char</FONT> *Suff = <FONT color=#0000ff>new</FONT> <FONT
 color=#0000ff>char</FONT>[20]; </FONT></FONT></DIV>  <DIV><FONT face="times new roman" size=1>std::string shapeModeFileNames;</FONT></DIV>  <DIV><FONT face="Times New Roman" size=1></FONT><FONT color=#008000>&nbsp;</DIV></FONT>  <DIV><FONT size=1><FONT face="times new roman"><FONT color=#0000ff>for</FONT> (<FONT color=#0000ff>int</FONT> ModeNumber = 1; ModeNumber &lt;=4; ModeNumber++)</FONT></FONT></DIV>  <DIV><FONT face="times new roman" size=1>{</FONT></DIV>  <DIV><FONT face="times new roman" size=1>sprintf(Suf, <FONT color=#800000>"%02d.mha"</FONT>, ModeNumber);</FONT></DIV>  <DIV><FONT face="times new roman" size=1>shapeModeFileNames = FilePref + Suf;</FONT></DIV>  <DIV><FONT face="times new roman" size=1>ReaderType::Pointer shapeModeReader = ReaderType::New();</FONT></DIV>  <DIV><FONT face="times new roman" size=1>shapeModeReader-&gt;SetFileName( shapeModeFileNames.c_str() );</FONT></DIV>  <DIV><FONT face="times new roman"
 size=1>shapeModeReader-&gt;Update();</FONT></DIV>  <DIV><FONT face="times new roman" size=1>shapeModeImages[ModeNumber] = shapeModeReader-&gt;GetOutput();</FONT></DIV>  <DIV><FONT face="times new roman" size=1>}</FONT></DIV>  <DIV><FONT face="times new roman" size=1>shape-&gt;SetMeanImage( meanShapeReader-&gt;GetOutput() );</FONT></DIV>  <DIV><FONT face="times new roman" size=1>shape-&gt;SetPrincipalComponentImages( shapeModeImages );</FONT></DIV>  <DIV><FONT face="Times New Roman" size=1></FONT>&nbsp;</DIV>  <DIV><FONT face="Times New Roman" size=1>Does anyone notice something I might have done wrong?</FONT></DIV>  <DIV><FONT face="Times New Roman" size=1></FONT>&nbsp;</DIV>  <DIV><FONT face="Times New Roman" size=1>Thanks,</FONT></DIV>  <DIV><FONT face="Times New Roman" size=1>Tomi L.</FONT></DIV><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com