<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>There is WrapITK, which is closer to a direct mapping of much of ITK to python and maybe Java [1]. With ITK v4 it is now part of the ITK source tree and can be compiled as part with ITK by turn on the cmake variable ITK_WRAP_PYTHON.</div><div><br></div><div>While SimpleITK is not designed to implement pixel wise algorithms, as that is likely best done and the C++ level of ITK, the Image class does contain the __iter__, next, __len__, __getitem__, and __setitem__ methods to allow convenient ( not fast ) access to the image as a python container. The iterator interface may be optimized further in the future.&nbsp;</div><div><br></div><div>It is also correct that SimpleITK does not have an interface to the ITK registration framework yet. If you are looking for a simple interface to ITK registration that are the application orient project such as University of Iowa BRAINS, or the University of Pennsylvania ANTS.</div><div><br></div><div>Brad</div><div><br></div><div><br></div><div>[1]&nbsp;<a href="http://www.insight-journal.org/browse/publication/85/">http://www.insight-journal.org/browse/publication/85/</a></div><div><br><div><div>On Jul 12, 2012, at 12:12 PM, Ahmed Halaweish, Ph.D. wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">
<div>
<div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">Willi,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">&nbsp; &nbsp;Thanks for the prompt reply … I guess I'll have to go back to the roots again :D.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">&nbsp; &nbsp; Is there any other way to utilize the full functionality of ITK with Python?</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; "><br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">Cheers</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; "><br>
</div>
<div>
<div><font face="Arial" style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><b><font size="3">Ahmed
 F. Halaweish Ph.D.</font></b></font><span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; "></span>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<font face="Arial">Postdoctoral Research Fellow</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<font face="Arial">Duke Image Analysis Laboratory (DIAL)</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<font face="Arial">Center for Advanced MR Development (CAMRD)</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<font face="Arial">Department of Radiology</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<font face="Arial">Duke University School of Medicine</font></div>
<div style="color: rgb(0, 0, 0); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<font class="Apple-style-span" face="Arial"><br>
</font></div>
</div>
</div>
</div>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; "><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Willi Huber &lt;<a href="mailto:w.huber@ymail.com">w.huber@ymail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>Willi Huber &lt;<a href="mailto:w.huber@ymail.com">w.huber@ymail.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thursday, July 12, 2012 10:31 AM<br>
<span style="font-weight:bold">To: </span>Ahmed Halaweish &lt;<a href="mailto:ahmed.halaweish@dm.duke.edu">ahmed.halaweish@dm.duke.edu</a>&gt;, "<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>" &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Insight-users] Simple ITK Iterators &amp; Registration<br>
</div>
<div><br>
</div>
<div>
<div>
<div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">
<div><span>
<div><span>Hello Ahmed,</span></div>
<div><span><br>
</span></div>
<div>no it is so far not implemented in SimpleITK.</div>
<div><br>
</div>
<div>SimpleITK is a very young project and has a different philosophy. Its goal is to allow an easier access to the ITK therefore it will take some time until everybody agreed the implementation of a new way for example to use registration.</div>
<div><br>
</div>
<div>For registration you have to use the ITK itself and maybe build it by yourself.&nbsp;<a href="http://www.itk.org/Wiki/ITK" style="font-size: 10pt; ">http://www.itk.org/Wiki/ITK</a><span style="font-size: 10pt; ">&nbsp;should be a good starting point</span></div>
<div><br>
</div>
<div>Cheers,</div>
<div>Willi</div>
</span></div>
<div><br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px;
 padding-left: 5px;">
<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">
<div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">
<div dir="ltr"><font size="2" face="Arial">
<hr size="1">
<b><span style="font-weight:bold;">Von:</span></b> "Ahmed Halaweish, Ph.D." &lt;<a href="mailto:ahmed.halaweish@duke.edu">ahmed.halaweish@duke.edu</a>&gt;<br>
<b><span style="font-weight: bold;">An:</span></b> "<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>" &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;
<br>
<b><span style="font-weight: bold;">Gesendet:</span></b> 15:21 Donnerstag, 12.Juli 2012<br>
<b><span style="font-weight: bold;">Betreff:</span></b> [Insight-users] Simple ITK Iterators &amp; Registration<br>
</font></div>
<br>
<div id="yiv249546010">
<div>
<div>
<div>
<div style="font-family: Calibri, sans-serif; ">&nbsp;I have looked at the doxygen site and I can't seem to find any iterator and/or registration classes in the list of implemented classes. Have these been implemented yet? If not, when will they be? I keep getting
 a "module object has no attribute" error when trying to implement an iterator in my python scripts.</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">I am running&nbsp;Python 2.7 &amp; SimpleITK 0.4.0 on Mac OSX 10.6.8.</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-family: Calibri, sans-serif; ">Cheers</div>
<div style="font-family: Calibri, sans-serif; "><br>
</div>
<div>
<div><font style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; "><b><font size="3">Ahmed
 F. Halaweish Ph.D.</font></b></font><span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; display: inline; float: none; "></span>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; ">
<font face="Arial">Postdoctoral Research Fellow</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; ">
<font face="Arial">Duke Image Analysis Laboratory (DIAL)</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; ">
<font face="Arial">Center for Advanced MR Development (CAMRD)</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; ">
<font face="Arial">Department of Radiology</font></div>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; ">
<font face="Arial">Duke University School of Medicine</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_____________________________________<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" 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" 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" 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>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</span>
</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>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>