[Insight-users] ITK to VTK Convertion Error

Luis Ibanez luis.ibanez at kitware.com
Sun May 22 18:46:52 EDT 2011


Hi Abayiz,

What *exactly* is different about the slices
sequence when you convert from VTK to ITK ?

Are they in random order ?

Are they up-side down ?
if so, is this along Z ? Y ?


Please be more specific.
or provide a screenshot.

    Thanks


           Luis


-------------------------------------------
On Sun, May 22, 2011 at 11:27 AM, Abayiz <abayiz at yahoo.com> wrote:
> Hi Luis,
>
> Thank you very much for your answer.
>
> The problem is, if I use VTK to load dicom, and view it also using VTK, everything is fine. But after I converted it to ITK, then the sequence problem comes.  after conversion from VTK to ITK, the dicom slices are totally not in the correct sequence. Any suggestions?
>
> Thanks again.
>
> Abayiz
>
> --- On Sat, 5/21/11, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>> From: Luis Ibanez <luis.ibanez at kitware.com>
>> Subject: Re: [Insight-users] ITK to VTK Convertion Error
>> To: "Abayiz" <abayiz at yahoo.com>
>> Cc: insight-users at itk.org
>> Date: Saturday, May 21, 2011, 1:08 PM
>> Hi Abayiz,
>>
>>
>> Can you describe the distortion ?
>>
>> Maybe post a screenshot ?
>>
>> Note that VTK images do not have
>> a explicit representation of Orientation,
>> so the information about the DICOM
>> direction matrix gets lost when you use
>> VTK for reading the DICOM images.
>>
>> You may find better to use the ITK GDCM
>> reader in order to load the DICOM images.
>>
>>
>>      Luis
>>
>>
>> ---------------------------
>> On Fri, May 20, 2011 at 10:03 AM, Abayiz <abayiz at yahoo.com>
>> wrote:
>> > Hello all,
>> >
>> > I am using a vtk-based dicom loader to load dicom
>> series, and then use ITK to perform registration. But I
>> found that when I try to convert from VTK to ITK, it is not
>> working correctly, i.e., the dicom file orders are
>> distorted, not the same as before conversion.
>> >
>> > I doubt itkVTKImagetoImageFilter is not working quite
>> well with dicom files, since the same files can be read
>> quite well using only itk-based loader. Am I right? How can
>> I work this out?
>> >
>> > Many thanks in advance!
>> >
>> > Abayiz
>> > _____________________________________
>> > 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.html
>> >
>> > 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://www.itk.org/mailman/listinfo/insight-users
>> >
>>
>
>


More information about the Insight-users mailing list