[ITK-users] White Background on rotated image

Matias Montroull matimontg at gmail.com
Thu Nov 13 12:14:26 EST 2014


Bradley, as soon as I enter this line of code:

typedef itk::GDCMImageIO ImageIOType;
ImageIOType::Pointer gdcmImageIO = ImageIOType::New();
writer->SetImageIO(gdcmImageIO);

I get a bad image as result.. any ideas what could it be?

On Thu, Nov 13, 2014 at 11:36 AM, Bradley Lowekamp <blowekamp at mail.nih.gov>
wrote:

> Hello again,
>
> This is a non-trivial task where caution in needed to determine which tags
> should be copied. But here is a basic example here:
> http://itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM
>
> Brad
>
> On Nov 13, 2014, at 9:30 AM, Matias Montroull <matimontg at gmail.com> wrote:
>
> 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?
>
> On Thu, Nov 13, 2014 at 11:27 AM, Matias Montroull <matimontg at gmail.com>
> wrote:
>
>> Bradley, I must say you're the man! that did the trick, thanks a lot!
>>
>> On Thu, Nov 13, 2014 at 10:59 AM, Bradley Lowekamp <
>> blowekamp at mail.nih.gov> wrote:
>>
>>> Hello,
>>>
>>> Check out the ImageToImageFilter::SetDefaultPixelValue method [1].
>>>
>>> Brad
>>>
>>> [1]
>>> http://www.itk.org/Doxygen/html/classitk_1_1ResampleImageFilter.html#a227397f3786a0ec4d3107cb73033b4be
>>>
>>> On Nov 13, 2014, at 8:56 AM, Matias Montroull <matimontg at gmail.com>
>>> wrote:
>>>
>>> Hi,
>>>
>>> I'm running this example:
>>>
>>> http://www.itk.org/Doxygen/html/Filtering_2ResampleImageFilter3_8cxx-example.html
>>>
>>> and I'm getting this result which is fine *but I need the white
>>> sections left due to the rotation to be black.* how can I achieve this?
>>>
>>> <Capture.JPG>
>>>>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>>
>>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141113/b5bfd1bf/attachment.html>


More information about the Insight-users mailing list