<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>That is great you were able to wrap the class.</div><div><br></div><div>It would be even better to contribute that back to the community. The ideal way is to submit a patch to gerrit for review:</div><div><br></div><div><a href="http://insightsoftwareconsortium.github.com/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html">http://insightsoftwareconsortium.github.com/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html</a></div><div><br></div><div>Next would be to fork the github repository and push a patch to your fork.</div><div><br></div><div>Lastly, even just e-mail the file would be appreciated. The point is to get you hard work out there so every one can benefit!</div><div><br></div><div>Thanks,</div><div>Brad</div><div><br><div><div>On Dec 21, 2012, at 1:23 PM, "Li, Wen" &lt;<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="MS Exchange Server version 6.5.7655.5">
<title>RE: [Insight-users] reader is wrapped but not the writer?</title>

<div>
<!-- Converted from text/plain format --><p><font size="2">OK. by mimic wrapping of ExtractImageFilter:<br>
<br>
<a href="https://github.com/Kitware/ITK/blob/master/Modules/Core/Common/wrapping/itkExtractImageFilter.wrap">https://github.com/Kitware/ITK/blob/master/Modules/Core/Common/wrapping/itkExtractImageFilter.wrap</a><br>
<br>
itkImageSeriesWriter is wrapped correctly.<br>
<br>
Thank you and Happy Holidays!<br>
<br>
Wen<br>
<br>
-----Original Message-----<br>
From: Bradley Lowekamp [<a href="mailto:blowekamp@mail.nih.gov">mailto:blowekamp@mail.nih.gov</a>]<br>
Sent: Fri 12/21/2012 11:10 AM<br>
To: Li, Wen<br>
Cc: Bradley Lowekamp; <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
Subject: Re: [Insight-users] reader is wrapped but not the writer?<br>
<br>
Hello,<br>
<br>
Doh, I for got that's what the output image type is used for.<br>
<br>
I don't think I am going to get a chance to revisit this before the holiday.<br>
<br>
You can take a stab at it an submit a patch yourself if you are successful.<br>
<br>
Use the ExtractImageFilter as an exemplar in what needs to be done for this case:<br>
<br>
<a href="https://github.com/Kitware/ITK/blob/master/Modules/Core/Common/wrapping/itkExtractImageFilter.wrap">https://github.com/Kitware/ITK/blob/master/Modules/Core/Common/wrapping/itkExtractImageFilter.wrap</a><br>
<br>
Brad<br>
<br>
On Dec 21, 2012, at 9:57 AM, "Li, Wen" &lt;<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>&gt; wrote:<br>
<br>
&gt; Brad,<br>
&gt;<br>
&gt; I tried your patch.<br>
&gt; The writer is wrapped now but imagetype is unreasonably restricted.<br>
&gt;<br>
&gt; if I create a pointer like below in python:<br>
&gt; writer=itk.ImageSeriesWriter[inputImageType, outputImageType].New()<br>
&gt;<br>
&gt; the inputImageType and outputImageType have to be exactly the same.<br>
&gt;<br>
&gt; Aren't we saying, outputImageType should have fewer dimensions than input?<br>
&gt; I can live with having them to have the same pixel type but dimension...don't know. I thought "input" is usually 3 and "output" is 2. No?<br>
&gt;<br>
&gt; Wen<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Bradley Lowekamp [<a href="mailto:blowekamp@mail.nih.gov">mailto:blowekamp@mail.nih.gov</a>]<br>
&gt; Sent: Thu 12/20/2012 1:58 PM<br>
&gt; To: Li, Wen<br>
&gt; Cc: Bradley Lowekamp; <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
&gt; Subject: Re: [Insight-users] reader is wrapped but not the writer?<br>
&gt;<br>
&gt; Doh,<br>
&gt;<br>
&gt; Pasted the wrong thing:<br>
&gt;<br>
&gt; <a href="http://review.source.kitware.com/#/c/9026/">http://review.source.kitware.com/#/c/9026/</a><br>
&gt;<br>
&gt; Heres info on how to review the patch:<br>
&gt; <a href="http://insightsoftwareconsortium.github.com/ITKBarCamp-doc/CommunitySoftwareProcess/PerformAGerritReview/index.html">http://insightsoftwareconsortium.github.com/ITKBarCamp-doc/CommunitySoftwareProcess/PerformAGerritReview/index.html</a><br>
&gt;<br>
&gt; Brad<br>
&gt;<br>
&gt; On Dec 20, 2012, at 1:50 PM, "Li, Wen" &lt;<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Thanks!<br>
&gt; &gt;<br>
&gt; &gt; But where can I find the patch?...<br>
&gt; &gt;<br>
&gt; &gt; Wen<br>
&gt; &gt;<br>
&gt; &gt; Postdoctoral Fellow<br>
&gt; &gt; Bioengineering, Sheikh Zayed Institute<br>
&gt; &gt; Children's National Medical Center<br>
&gt; &gt; 111 Michigan Ave. NW<br>
&gt; &gt; Washington DC, 20010<br>
&gt; &gt; Email: <a href="mailto:wli@cnmc.org">wli@cnmc.org</a><br>
&gt; &gt; Phone: 202-476-1268<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: Bradley Lowekamp [<a href="mailto:blowekamp@mail.nih.gov">mailto:blowekamp@mail.nih.gov</a>]<br>
&gt; &gt; Sent: Thu 12/20/2012 1:33 PM<br>
&gt; &gt; To: Li, Wen<br>
&gt; &gt; Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
&gt; &gt; Subject: Re: [Insight-users] reader is wrapped but not the writer?<br>
&gt; &gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; I quickly have put together the following patch. I have things compile but I have not really tested it yet.<br>
&gt; &gt;<br>
&gt; &gt; Modules/IO/ImageBase/wrapping/itkImageSeriesWriter.wrap<br>
&gt; &gt;<br>
&gt; &gt; Let me know if it works,<br>
&gt; &gt; Brad<br>
&gt; &gt;<br>
&gt; &gt; On Dec 20, 2012, at 10:52 AM, "Li, Wen" &lt;<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi insight-users,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I am using ITK4.2.0 with python 2.7.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Just discovered that itkImageSeriesWriter is not wrapped by python but the reader is :(<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Can anyone tell me how to hack that? Otherwise how can I write out a dicom image with python?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks in advance,<br>
&gt; &gt; &gt; Wen<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Postdoctoral Fellow<br>
&gt; &gt; &gt; Bioengineering, Sheikh Zayed Institute<br>
&gt; &gt; &gt; Children's National Medical Center<br>
&gt; &gt; &gt; 111 Michigan Ave. NW<br>
&gt; &gt; &gt; Washington DC, 20010<br>
&gt; &gt; &gt; Email: <a href="mailto:wli@cnmc.org">wli@cnmc.org</a><br>
&gt; &gt; &gt; Phone: 202-476-1268<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _____________________________________<br>
&gt; &gt; &gt; Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; &gt; &gt; <a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; &gt; &gt; <a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
</font>
</p>

</div>
</blockquote></div><br></div></body></html>