Hi Sergio,<br><br>There are no existing filters that will convert a Sample into an image,<br>However, you could write equivalent code without too much effort.<br><br>You will need something like the following:<br><br>ImageType::RegionType region =  inputImage.GetBufferedRegion();<br>
<br>ImageType::Pointer image = ImageType::New();<br>image.SetRegions();<br>image.CopyInformation( inputImage );<br>image.Allocate();<br><br>typedef ListSampleType::Iterator    SampleIterator;<br>
SampleIterator sampleItr = sample-&gt;Begin();<br>typedef itk::ImageRegionIterator&lt; ImageType &gt; ImageIterator;<br>ImageIterator imageItr( image, region );<br>imageItr.GoToBegin();<br><br>while( sampleItr != sample-&gt;End() )<br>
{<br>imageItr.Set( <br>    gaussianDensityFunction.Evaluate( sampleItr.GetMeasurementVector() ) );<br>++imageItr;<br>++sampleItr;<br>}<br><br><br><br>Regards,<br><br><br>      Luis<br><br>------------------------------------------------------------------<br>
<div class="gmail_quote">On Mon, Aug 10, 2009 at 9:25 PM, Sergio Aguirre <span dir="ltr">&lt;<a href="mailto:sergio.guirre@gmail.com">sergio.guirre@gmail.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;">
Hello everyone. <br><br>I am working on analyzing some statistical information of DICOM images. I would like to see if it is possible to generate an image from a statistics measurement vector. <br><br>Say for instance that I read a DICOM image, then using the itkImageToListAdaptor calculate its GDF using the itkGaussianDensityFunction, how could I translate the outgoing GDF vector back to an image? <br>

<br>ITK Image -&gt; ImageToListAdaptor -&gt; itkGDF -&gt; XXX??? -&gt; ITK Image<br><br>Thank you. <br><font color="#888888"><br>Sergio <br><br>
</font><br>_____________________________________<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>
Please keep messages on-topic and check the ITK FAQ at: <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></blockquote></div><br>