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