<br>Hi Dan,<br><br>The proposal is very interesting. Having read the PDF, I'll take a look at the code. I may be able to offer a review (time permitting).<br><br>Do you have any recent examples of using either the SliceContiguous or the Sparse images to compose a 3D volume from a series of 2D image files? Do you somehow<br>
<br>a) Allocate the custom image memory (if known size & pixtype)<br>b) Create an IO object to read data from an image file<br>c) manually iterate over the IO object data with Get/Set accessors to put data into custom image memory<br>
d) Filter, etc. (if possible)<br>e) Write out image data to disk (somehow)<br><br>I can take the performance hit for the sparse image with Setting values.<br><br>Should I be looking into streaming data models? Essentially all I need to do is stream a set of 2D input data straight out to a 3D output data file. I'm currently using a series reader (with a regex to define the image series) and piping it straight to a writer (with vtkIO for the writer). If a streaming model is available for this data transfer, it might avoid the segfaults due to allocation limits (I have plenty of disk space, just not enough RAM).<br>
<br>Thanks!<br>Darren<br><br><br><br><br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 1:54 PM, Dan Mueller <span dir="ltr"><<a href="mailto:dan.muel@gmail.com">dan.muel@gmail.com</a>></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;">
Hi Darren,<br>
<br>
You might want to investigate the following Insight Journal submission:<br>
<a href="http://www.insight-journal.org/browse/publication/646" target="_blank">http://www.insight-journal.org/browse/publication/646</a><br>
<br>
<shameless plug><br>
Make sure you leave a review!<br>
</shameless plug><br>
<br>
Cheers, Dan<br>
<br>
2009/11/4 Darren Weber <<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>>:<br>
<div><div></div><div class="h5">><br>
> I'm working with a very large dataset (1000's of 2D images, size > 1024x1024<br>
> pixels, ushort RGB pixels). A large portion of these images is background.<br>
><br>
> A few routines, like saving all the 2D images into a 3D volume, fail with<br>
> segfaults due to malloc errors (on OSX 10.5.8 with 24Gb RAM; using ITK<br>
> 3.16.0).<br>
><br>
> Is there an image format that provides 'sparse' images? This implies there<br>
> are no data values for some of the image pixels (is this the same thing as<br>
> transparent background?).<br>
><br>
> What is an optimal image format for working with this data?<br>
><br>
> Thanks in advance (TIA),<br>
> Darren<br>
><br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br>