<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Paolo,<div><br></div><div>I have used the the following external module for get numpy support for WrapITK:</div><div><br></div><div><a href="https://github.com/tobiasmaier/itkPyBuffer">https://github.com/tobiasmaier/itkPyBuffer</a></div><div><br></div><div><br></div><div>From the root ITK source dir just clone the repo into the Modules/External directory:</div><div><br></div><div>git clone <a href="git://github.com/tobiasmaier/itkPyBuffer.git">git://github.com/tobiasmaier/itkPyBuffer.git</a> Modules/External/</div><div><br></div><div>Rerun ccmake, and turn on this module. And recompile.</div><div><br></div><div><br></div><div>While you are waiting you can check to see if SimpleITK has the functionality you need.</div><div>I'd like to point out that SimpleITK has built in support for numpy, and has binary eggs available for download.&nbsp;</div><div><a href="http://www.itk.org/Wiki/ITK/Release_4/SimpleITK">http://www.itk.org/Wiki/ITK/Release_4/SimpleITK</a></div><div><br></div><div>Brad</div><div><br><div><div>On Jan 29, 2013, at 8:46 AM, Paolo Zaffino &lt;<a href="mailto:p.zaffino@yahoo.it">p.zaffino@yahoo.it</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div><font face="times new roman, new york, times, serif">Dear ITK community,</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">I compiled ITK 4.3.1 with the Python support and all went fine.</font></div><div><font face="times new roman, new york, times, serif">I am able to run ITK functions from Python, but I'm also interested in converting an ITK image into a Numpy matrix and viceversa.</font></div><div><font face="times new roman, new york, times, serif">How can I do this?</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Thank you very much.</font></div><div><font face="times new roman, new york, times,
 serif">Regards.</font></div><div><font face="times new roman, new york, times, serif">Paolo</font></div></div></div>_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>