Hi.<br><br>I&#39;ve modified the code to solve the problem with modReader origin but nothing changes, the output of Resample Filter is still all zeros.<br><br>This are the modifications that I introduced:<br><br>const FImageType::PointType&amp; originMod = modReader-&gt;GetOutput()-&gt;GetOrigin();&nbsp;&nbsp;&nbsp; <br>
TransformType::OutputVectorType translation;<br>translation[0] = posY-originCA[0]-originMod[0];<br>translation[1] = posX-originCA[1]-originMod[1];<br>translation[2] = posZ-originCA[2]-originMod[2];<br><br>Thank you for your interest. <br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c">
</div></div></blockquote></div><br>