<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" <<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>> 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" <<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>> wrote:<br>
<br>
> Brad,<br>
><br>
> I tried your patch.<br>
> The writer is wrapped now but imagetype is unreasonably restricted.<br>
><br>
> if I create a pointer like below in python:<br>
> writer=itk.ImageSeriesWriter[inputImageType, outputImageType].New()<br>
><br>
> the inputImageType and outputImageType have to be exactly the same.<br>
><br>
> Aren't we saying, outputImageType should have fewer dimensions than input?<br>
> 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>
><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: Thu 12/20/2012 1:58 PM<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>
> Doh,<br>
><br>
> Pasted the wrong thing:<br>
><br>
> <a href="http://review.source.kitware.com/#/c/9026/">http://review.source.kitware.com/#/c/9026/</a><br>
><br>
> Heres info on how to review the patch:<br>
> <a href="http://insightsoftwareconsortium.github.com/ITKBarCamp-doc/CommunitySoftwareProcess/PerformAGerritReview/index.html">http://insightsoftwareconsortium.github.com/ITKBarCamp-doc/CommunitySoftwareProcess/PerformAGerritReview/index.html</a><br>
><br>
> Brad<br>
><br>
> On Dec 20, 2012, at 1:50 PM, "Li, Wen" <<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>> wrote:<br>
><br>
> > Thanks!<br>
> ><br>
> > But where can I find the patch?...<br>
> ><br>
> > Wen<br>
> ><br>
> > Postdoctoral Fellow<br>
> > Bioengineering, Sheikh Zayed Institute<br>
> > Children's National Medical Center<br>
> > 111 Michigan Ave. NW<br>
> > Washington DC, 20010<br>
> > Email: <a href="mailto:wli@cnmc.org">wli@cnmc.org</a><br>
> > Phone: 202-476-1268<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > -----Original Message-----<br>
> > From: Bradley Lowekamp [<a href="mailto:blowekamp@mail.nih.gov">mailto:blowekamp@mail.nih.gov</a>]<br>
> > Sent: Thu 12/20/2012 1:33 PM<br>
> > To: Li, Wen<br>
> > Cc: <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>
> > I quickly have put together the following patch. I have things compile but I have not really tested it yet.<br>
> ><br>
> > Modules/IO/ImageBase/wrapping/itkImageSeriesWriter.wrap<br>
> ><br>
> > Let me know if it works,<br>
> > Brad<br>
> ><br>
> > On Dec 20, 2012, at 10:52 AM, "Li, Wen" <<a href="mailto:WLi@childrensnational.org">WLi@childrensnational.org</a>> wrote:<br>
> ><br>
> > > Hi insight-users,<br>
> > ><br>
> > > I am using ITK4.2.0 with python 2.7.<br>
> > ><br>
> > > Just discovered that itkImageSeriesWriter is not wrapped by python but the reader is :(<br>
> > ><br>
> > > Can anyone tell me how to hack that? Otherwise how can I write out a dicom image with python?<br>
> > ><br>
> > > Thanks in advance,<br>
> > > Wen<br>
> > ><br>
> > > Postdoctoral Fellow<br>
> > > Bioengineering, Sheikh Zayed Institute<br>
> > > Children's National Medical Center<br>
> > > 111 Michigan Ave. NW<br>
> > > Washington DC, 20010<br>
> > > Email: <a href="mailto:wli@cnmc.org">wli@cnmc.org</a><br>
> > > Phone: 202-476-1268<br>
> > ><br>
> > ><br>
> > ><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">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">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">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">http://www.itk.org/mailman/listinfo/insight-users</a><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
><br>
<br>
<br>
</font>
</p>
</div>
</blockquote></div><br></div></body></html>