<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<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>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>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 &quot;input&quot; is usually 3 and &quot;output&quot; 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; insight-users@itk.org<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, &quot;Li, Wen&quot; &lt;WLi@childrensnational.org&gt; wrote:<BR>
<BR>
&gt; Thanks!<BR>
&gt;<BR>
&gt; But where can I find the patch?...<BR>
&gt;<BR>
&gt; Wen<BR>
&gt;<BR>
&gt; Postdoctoral Fellow<BR>
&gt; Bioengineering, Sheikh Zayed Institute<BR>
&gt; Children's National Medical Center<BR>
&gt; 111 Michigan Ave. NW<BR>
&gt; Washington DC, 20010<BR>
&gt; Email: wli@cnmc.org<BR>
&gt; Phone: 202-476-1268<BR>
&gt;<BR>
&gt;<BR>
&gt;<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:33 PM<BR>
&gt; To: Li, Wen<BR>
&gt; Cc: insight-users@itk.org<BR>
&gt; Subject: Re: [Insight-users] reader is wrapped but not the writer?<BR>
&gt;<BR>
&gt; Hello,<BR>
&gt;<BR>
&gt; I quickly have put together the following patch. I have things compile but I have not really tested it yet.<BR>
&gt;<BR>
&gt; Modules/IO/ImageBase/wrapping/itkImageSeriesWriter.wrap<BR>
&gt;<BR>
&gt; Let me know if it works,<BR>
&gt; Brad<BR>
&gt;<BR>
&gt; On Dec 20, 2012, at 10:52 AM, &quot;Li, Wen&quot; &lt;WLi@childrensnational.org&gt; wrote:<BR>
&gt;<BR>
&gt; &gt; Hi insight-users,<BR>
&gt; &gt;<BR>
&gt; &gt; I am using ITK4.2.0 with python 2.7.<BR>
&gt; &gt;<BR>
&gt; &gt; Just discovered that itkImageSeriesWriter is not wrapped by python but the reader is :(<BR>
&gt; &gt;<BR>
&gt; &gt; Can anyone tell me how to hack that? Otherwise how can I write out a dicom image with python?<BR>
&gt; &gt;<BR>
&gt; &gt; Thanks in advance,<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: wli@cnmc.org<BR>
&gt; &gt; Phone: 202-476-1268<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt; _____________________________________<BR>
&gt; &gt; Powered by www.kitware.com<BR>
&gt; &gt;<BR>
&gt; &gt; Visit other Kitware open-source projects at<BR>
&gt; &gt; <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>
&gt; &gt;<BR>
&gt; &gt; Kitware offers ITK Training Courses, for more information visit:<BR>
&gt; &gt; <A HREF="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</A><BR>
&gt; &gt;<BR>
&gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<BR>
&gt; &gt; <A HREF="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</A><BR>
&gt; &gt;<BR>
&gt; &gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; &gt; <A HREF="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>