<div>Rather than have the lower left corner of the image be at world coordinates (0,0), I want (0,0) to be at the center of the image. </div><div><br></div><div>It looks like the SetOrigin() function of vtkImageData would do this, but it doesn&#39;t seem to &quot;move&quot; the image in world coordinates.</div>
<div><br></div><div>I tried this:</div><div><br></div><div><div>  int dims[3];</div><div>  image-&gt;GetDimensions(dims);</div><div>  image-&gt;SetOrigin(-dims[0]/2, -dims[1]/2, -dims[2]/2);</div><div>  image-&gt;Update();</div>
<div><br></div><div>but it doesn&#39;t seem to move.</div><div><br></div><div>The border widget is used to show the coordinates of a region of the image (to verify if it has moved or not).</div><div><br></div><div>Can anyone see what I may have done wrong here?</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/CenterAnImage">http://www.vtk.org/Wiki/VTK/Examples/CenterAnImage</a></div><div><br></div>Thanks,<br><br>David<br>
</div>