<div dir="ltr">Dear Abdelkhalek Bakkari,<div><br></div><div>to compute a bunch of statistical data about your image you could use: <a href="http://www.itk.org/Doxygen/html/classitk_1_1StatisticsImageFilter.html">itkStatisticsImageFilter</a> . I have attached at this mail a minimal working example for 2d images.</div><div><br></div><div>Since you are dealing with VTK images you should probably use <a href="http://www.itk.org/Doxygen/html/classitk_1_1VTKImageToImageFilter.html">itkVTKToImageFilter</a> to get an ITK image from a VTK one.</div><div><br></div><div>I am sorry, but I haven't quite understood the part regarding storing the mean, the variance, etc as a 3D image. Anyhow, you can always build an empty image and change its values pixel by pixel using an image iterator.</div><div><br></div><div>Best,</div><div><br></div><div>Luigi</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-15 2:43 GMT+01:00 Abdelkhalek Bakkari <span dir="ltr"><<a href="mailto:bakkari.abdelkhalek@hotmail.fr" target="_blank">bakkari.abdelkhalek@hotmail.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><font face="Times New Roman,sans-serif" size="1" style="font-size:8pt" color="#000000"><br></font><font face="Times New Roman, sans-serif" size="4">Dear insight-users,</font><div><font face="Times New Roman, sans-serif" size="4"><br></font></div><div><font face="Times New Roman, sans-serif" size="4">How can I calculate the mean, variance, energy...etc of a 3D image and store them in an array as 3D images using ITK.</font></div><div><font face="Times New Roman, sans-serif" size="4">The input 3D image is an output of VTK.</font></div><div><font face="Times New Roman, sans-serif" size="4"><br></font></div><div><font face="Times New Roman, sans-serif" size="4">Best regards,</font><br><br><font size="3" face="Garamond">Abdelkhalek Bakkari</font><div><span style="line-height:14px"><font size="3" face="Garamond">Ph.D candidate in Computer Science</font></span></div><div><span style="line-height:20.82666778564453px;background-color:rgb(255,255,255)"><font face="Garamond" size="3">Institute of Applied Computer Science</font></span></div><div><span style="line-height:18.399999618530273px"><font face="Garamond" size="3">Lodz University of Technology, Poland</font></span></div></div> </div></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>