<br><div class="gmail_quote">On Sat, Aug 8, 2009 at 7:18 PM, Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi David,<br><br>The settings of Origin, Spacing and Direction are independent<br>of the memory allocation process. You could do it after or before.<br><br><br>There shouldn&#39;t be any difference between an image for which<br>

you assigned the spacing before Allocate() and the one for which<br>you assigned the spacing after Allocate().<br><br><br>Something else should be going on here...<br><br><br>Have you verified the values of spacing by opening the .vtk<br>

files with a text editor ?<br><br>BTW: I couldn&#39;t get to the two links that you posted.<br><br><br>     Regards,<br><br><br>             Luis<br></blockquote><div><br>Ah sorry, I goofed and moved the files on my webserver. The files are here:<br>

<a href="http://www.rpi.edu/~doriad/ITK_List/SetImageSpacing/">http://www.rpi.edu/~doriad/ITK_List/SetImageSpacing/</a><br>
<br>
As a side note - is there a way to have a user accessible web space for
things like this? It seems like it would be a good idea if two years
later when someone reads a post the files still be available, rather
than people (like myself) forgetting to leave files where they will be
available, or student accounts disappearing upon graduation, or other web hosting services dying, etc. Something like <a href="http://www.itk.org/ListFiles">http://www.itk.org/ListFiles</a> - maybe the
files can even have a little link of which list message they belong to
or something? Just a thought...<br>
<br>
Back to the problem -<br>
<br>
good.cpp produces good.vtk <br>
bad.cpp produces bad.vtk<br>
<br>
The only difference (at least that I intended and can detect) is the
placement of setting the image spacing. I examined the ascii header of
the vtk files and they look to be the same, but the content of the
files is binary so I can&#39;t check it manually. In paraview the two files
look very different though.<br>
<br clear="all">Thanks,<br><br>David <br></div></div>