<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi<div><br></div><div>Going the way described in the CreateVolume example is the way to go.</div><div><br></div><div>Why did you uncomment the DisconnectPipeline() call and Update() call in the for loop ? They need to stay there, else you will always use the last image.</div><div>That’s why you see the same image, the single update call will be triggered at the end of the script and read only one image.</div><div><br></div><div>You don’t need to call tileFilter->Update(), you can remove this line. The writer->Update() will take care of the pipeline update.</div><div>As a bonus, you may wrap your writer->Update() call, to fetch errors at the end of the pipeline:</div><div><br></div><div><div>  try</div><div>    {</div><div>    writer->Update();</div><div>    }</div><div>  catch( itk::ExceptionObject & error )</div><div>    {</div><div>    std::cerr << "Error: " << error << std::endl;</div><div>    return EXIT_FAILURE;</div><div>    }</div></div><div><br></div><div>I made a little Python prototype, the syntax is a little bit different than in C++ but it gives you the main idea.</div><div><br></div><div>Michka</div><div><br></div><div></div></body></html>