<div dir="ltr">Thanks Matt, I'll give it a try</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 2:37 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="im HOEnZb">Hi Matias,<br>
<br>
This example may have a hint on how to write a series [1].<br>
<br>
HTH,<br>
Matt<br>
<br>
[1] <a href="http://itk.org/Doxygen/html/IO_2ImageReadDicomSeriesWrite_8cxx-example.html" target="_blank">http://itk.org/Doxygen/html/IO_2ImageReadDicomSeriesWrite_8cxx-example.html</a><br>
<br>
</span><div class="HOEnZb"><div class="h5">On Thu, Nov 13, 2014 at 12:18 PM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>> wrote:<br>
> Now I have another question. This example is just for one file, is there a<br>
> way to do it for a directory containing a set of DICOM files?<br>
><br>
> On Thu, Nov 13, 2014 at 2:16 PM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>><br>
> wrote:<br>
>><br>
>> never mind, it was my bad. The InputPixelType was unsigned char and should<br>
>> have been unsigned short<br>
>><br>
>> On Thu, Nov 13, 2014 at 2:14 PM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Bradley, as soon as I enter this line of code:<br>
>>><br>
>>> typedef itk::GDCMImageIO ImageIOType;<br>
>>> ImageIOType::Pointer gdcmImageIO = ImageIOType::New();<br>
>>> writer->SetImageIO(gdcmImageIO);<br>
>>><br>
>>> I get a bad image as result.. any ideas what could it be?<br>
>>><br>
>>> On Thu, Nov 13, 2014 at 11:36 AM, Bradley Lowekamp<br>
>>> <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
>>>><br>
>>>> Hello again,<br>
>>>><br>
>>>> This is a non-trivial task where caution in needed to determine which<br>
>>>> tags should be copied. But here is a basic example here:<br>
>>>> <a href="http://itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM" target="_blank">http://itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM</a><br>
>>>><br>
>>>> Brad<br>
>>>><br>
>>>> On Nov 13, 2014, at 9:30 AM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>><br>
>>>> wrote:<br>
>>>><br>
>>>> I have one more question, it seems the writer method removes lot of tags<br>
>>>> from the image, is there an option to keep the original tags such as patient<br>
>>>> name, model, manufacture etc?<br>
>>>><br>
>>>> On Thu, Nov 13, 2014 at 11:27 AM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> Bradley, I must say you're the man! that did the trick, thanks a lot!<br>
>>>>><br>
>>>>> On Thu, Nov 13, 2014 at 10:59 AM, Bradley Lowekamp<br>
>>>>> <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
>>>>>><br>
>>>>>> Hello,<br>
>>>>>><br>
>>>>>> Check out the ImageToImageFilter::SetDefaultPixelValue method [1].<br>
>>>>>><br>
>>>>>> Brad<br>
>>>>>><br>
>>>>>> [1]<br>
>>>>>> <a href="http://www.itk.org/Doxygen/html/classitk_1_1ResampleImageFilter.html#a227397f3786a0ec4d3107cb73033b4be" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1ResampleImageFilter.html#a227397f3786a0ec4d3107cb73033b4be</a><br>
>>>>>><br>
>>>>>> On Nov 13, 2014, at 8:56 AM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>><br>
>>>>>> wrote:<br>
>>>>>><br>
>>>>>> Hi,<br>
>>>>>><br>
>>>>>> I'm running this example:<br>
>>>>>><br>
>>>>>> <a href="http://www.itk.org/Doxygen/html/Filtering_2ResampleImageFilter3_8cxx-example.html" target="_blank">http://www.itk.org/Doxygen/html/Filtering_2ResampleImageFilter3_8cxx-example.html</a><br>
>>>>>><br>
>>>>>> and I'm getting this result which is fine but I need the white<br>
>>>>>> sections left due to the rotation to be black. how can I achieve this?<br>
>>>>>><br>
>>>>>> <Capture.JPG><br>
>>>>>><br>
>>>>>> _____________________________________<br>
>>>>>> Powered by <a href="http://www.kitware.com" target="_blank">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://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
>>>>>><br>
>>>>>><br>
>>>>><br>
>>>><br>
>>>><br>
>>><br>
>><br>
><br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">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://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
</div></div></blockquote></div><br></div>