[ITK] [ITK-users] question about wiki example ResampleDICOM

Arnaud Gelas arnaudgelas at gmail.com
Wed Sep 17 09:27:33 EDT 2014


I have already done that change before sending the email…
Unfortunately, I can' share the code; so I'll rather get back to the example and validate with this one. I'll get back to you once I have made the same test with the example.

On Sep 17, 2014, at 3:13 PM, Nick Patterson <pattersonnp.work at gmail.com> wrote:

> Ok, I will probably need to see your code if you have heavily modified the example. However, could you try the following:-
> 
> after line 333 : shiftScale->SetShift( interceptShift );
> add   shiftScale->Update();
> 
> 
> and try again…
> 
> Let me know.
> 
> Nick.
> 
> 
> 
> On 17 Sep 2014, at 14:10, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
> 
>> I have been modifying extensively this example...
>> Rescale slope/intercept are saved with expected values -1024 and 1.
>> 
>> Not sure if the error is in my code or in this example, but when I compare inputs and outputs with the ShiftScale part all pixels are different (and the difference is -1024)... that's why I am asking if this part is still valid?
>> 
>> On Wed, Sep 17, 2014 at 3:06 PM, Nick Patterson <pattersonnp.work at gmail.com> wrote:
>> Ok thanks. When you say that it doesn’t work anymore would I be correct in assuming that you mean that the output rescale slope/intercept are written out as 1 and 0, rather than the expected value of -1024 and 1? Or do you mean not working in some other way?
>> 
>> Nick.
>> 
>> 
>> 
>> On 17 Sep 2014, at 14:04, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
>> 
>>> Hi Nick,
>>> 
>>> I work with CT images, Rescale Intercept / Slope: ( -1024, 1 )
>>> 
>>> I use system gdcm (release branch from official git repository)
>>> 
>>> Thanks
>>> Arnaud 
>>> 
>>> On Wed, Sep 17, 2014 at 3:01 PM, Nick Patterson <pattersonnp.work at gmail.com> wrote:
>>> Arnauld,
>>> 
>>>  Can you also say if you are using the version of GDCM bundled with ITK release or have you compiled a system version of GDCM from the git-repository?
>>> 
>>> Nick.
>>> 
>>> 
>>> On 17 Sep 2014, at 13:59, Nick Patterson <pattersonnp.work at gmail.com> wrote:
>>> 
>>>> Arnauld,
>>>> 
>>>> Which modality image are you working with, and what are the rescale slope and intercept of the original image?
>>>> 
>>>> Nick.
>>>> 
>>>> 
>>>> 
>>>>  
>>>> On 17 Sep 2014, at 14:02, Arnaud Gelas <arnaudgelas at gmail.com> wrote:
>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I have been looking at the following wiki example:
>>>>> 
>>>>> 	http://www.itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM
>>>>> 
>>>>> It seems to me that the section to rescale the image is not valid anymore with latest ITK version (?)
>>>>> 
>>>>> 	https://github.com/InsightSoftwareConsortium/ITKWikiExamples/blob/master/DICOM/ResampleDICOM.cxx#L314-L333
>>>>> 
>>>>> Can anyone confirm?
>>>>> 
>>>>> Is this code validated? are output images compared to input ones in the corresponding test?
>>>>> 
>>>>> Thanks
>>>>> Arnaud
>>>>> _____________________________________
>>>>> 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/community/attachments/20140917/217ef5b3/attachment-0002.html>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list