And why not read those images from the dicom files directly using vtkDICOMImageReader? Another thing you can do is put that image on an array and build the vtkImageData from that array that contains the image<br><br><div><span class="gmail_quote">
2007/2/4, Rafael <<a href="mailto:rlcacuba@gmail.com">rlcacuba@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi.
<br><br><span style="font-weight: bold;">Does somebody know how to read a vtkImageData using vtkJPEGReader, but loading information from memory, not from files???</span><br><br>I need it because I am writing a medical visualization system. My module receives as input a serie of images, which have been extracted from a Dicom image.
<br><span style="font-weight: bold;">I need to build a vtkImageData using those images. </span><br><br>Naive solution may be writing those images to the file system and then reading them through methods provided by [vtkJPEGReader], but it is to slow.
<br><br><span style="font-weight: bold;">I need any way to read a vtkImageData from memory.</span><br><br>Thanks<br><br><br><br><br>
<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br>