<div dir="ltr">Hi Michka,<br><br>Please review this patch [1], which adds the required instantiations, and this patch [2], which provides an example.<br><br>Thanks,<br>Matt<br><br>[1] <a href="http://review.source.kitware.com/#/c/13664/">http://review.source.kitware.com/#/c/13664/</a><br>
[2] <a href="http://review.source.kitware.com/#/c/13662/">http://review.source.kitware.com/#/c/13662/</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 25, 2013 at 3:29 AM, Michka Popoff <span dir="ltr">&lt;<a href="mailto:michkapopoff@gmail.com" target="_blank">michkapopoff@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, just re-posting this, if someone has an idea ?<br>
<br>
I can open a ticket on the bug tracker if fixing this involves some bigger coding effort.<br>
<br>
Michka<br>
<br>
<br>
Le 20 nov. 2013 à 22:25, Michka Popoff a écrit :<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Hi<br>
&gt;<br>
&gt; I want to use the TileImageFilter (wrapped with python) to take two 2D images and make a 3D stack out of it, like described in this example :<br>
&gt; <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/TileImageFilter_CreateVolume" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/TileImageFilter_CreateVolume</a><br>
&gt;<br>
&gt; The example works nicely with c++, but not with python.<br>
&gt; Here is some basic code to reproduce the error :<br>
&gt;<br>
&gt; import itk<br>
&gt; inputtype = itk.Image[itk.UC, 2]<br>
&gt; outputtype = itk.Image[itk.UC, 3]<br>
&gt; tile_filter = itk.TileImageFilter[inputtype, outputtype].New()<br>
&gt;<br>
&gt; Here is the error message :<br>
&gt;<br>
&gt; Traceback (most recent call last):<br>
&gt;  File &quot;tiletest.py&quot;, line 4, in &lt;module&gt;<br>
&gt;    filt = itk.TileImageFilter[inputtype, outputtype].New()<br>
&gt;  File &quot;/usr/local/lib/ITK-4.4/Python/itkTemplate.py&quot;, line 233, in __getitem__<br>
&gt;    raise KeyError, &#39;itkTemplate : No template %s for the %s class&#39; % (str(parameters), self.__name__)<br>
&gt; KeyError: &quot;itkTemplate : No template (&lt;class &#39;itkImagePython.itkImageUC2&#39;&gt;, &lt;class &#39;itkImagePython.itkImageUC3&#39;&gt;) for the itk::TileImageFilter class&quot;<br>
&gt;<br>
&gt; I tried to modify the itkTileImageFilter.wrap file to accept 2 and 3 dimensional images (with itk_wrap_image_filter_combinations), but I was not able to get anything working.<br>
&gt;<br>
&gt; Am I doing something wrong, or if not, what would be the way to fix this ?<br>
&gt;<br>
&gt; Michka<br>
&gt;<br>
<br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br></div>