<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">There is a working example as part of the VTK regression tests:</div></div>
VTK/Imaging/Testing/Cxx/ImportExport.cxx</blockquote><div><br></div>Yes, but it has some bizarre lines (reader->SetDataExtent(0,63,0,63,1,93); reader->SetDataMask(0x7fff);), exports before it imports, and is generally as unclear as a test usually is. (Maybe Italo will argue otherwise)</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">I'd rather see a simpler demo which programmatically creates a (2D) image in memory (following some standard convention) and then loads it into a vtkImageData. It should also explain the conventions of the input (array created in memory) and how it maps to the output indices of the vtkImageData.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><div>David </div></div>