<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have already done that change before sending the email…<div>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.</div><div><br></div><div><div><div><div>On Sep 17, 2014, at 3:13 PM, Nick Patterson <<a href="mailto:pattersonnp.work@gmail.com">pattersonnp.work@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Ok, I will probably need to see your code if you have heavily modified the example. However, could you try the following:-</div><div><br></div><div>after line 333 : <span class="n" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">shiftScale</span><span class="o" style="box-sizing: border-box; font-weight: bold; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">-></span><span class="n" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">SetShift</span><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">(</span><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre; background-color: rgb(248, 238, 199);"> </span><span class="n" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">interceptShift</span><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre; background-color: rgb(248, 238, 199);"> </span><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">);</span></div><div><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">add   shiftScale->Update();</span></div><div><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;"><br></span></div><div><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;"><br></span></div><div><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;">and try again…</span></div><div><span class="p" style="box-sizing: border-box; color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre;"><br></span></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="line-height: 16px; white-space: pre;">Let me know.</span></font></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="line-height: 16px; white-space: pre;"><br></span></font></div><div><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace"><span style="line-height: 16px; white-space: pre;">Nick.</span></font></div><div><br></div><div><br></div><br><div><div>On 17 Sep 2014, at 14:10, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I have been modifying extensively this example...<div>Rescale slope/intercept are saved with expected values -1024 and 1.</div><div><br></div><div>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?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 3:06 PM, Nick Patterson <span dir="ltr"><<a href="mailto:pattersonnp.work@gmail.com" target="_blank">pattersonnp.work@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 style="word-wrap:break-word"><div>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?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Nick.</div></font></span><div><div class="h5"><div><br></div><div><br></div><br><div><div>On 17 Sep 2014, at 14:04, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com" target="_blank">arnaudgelas@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi Nick,<div><br></div><div>I work with CT images, Rescale Intercept / Slope: ( -1024, 1 )</div><div><br></div><div>I use system gdcm (release branch from official git repository)</div><div><br></div><div>Thanks</div><div>Arnaud <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 3:01 PM, Nick Patterson <span dir="ltr"><<a href="mailto:pattersonnp.work@gmail.com" target="_blank">pattersonnp.work@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 style="word-wrap:break-word"><div>Arnauld,</div><div><br></div><div> 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?</div><span><font color="#888888"><div><br></div><div>Nick.</div></font></span><div><div><br></div><br><div><div>On 17 Sep 2014, at 13:59, Nick Patterson <<a href="mailto:pattersonnp.work@gmail.com" target="_blank">pattersonnp.work@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">Arnauld,<div><br></div><div>Which modality image are you working with, and what are the rescale slope and intercept of the original image?</div><div><br></div><div>Nick.</div><div><br></div><div><br></div><div><br></div><div> <br><div><div>On 17 Sep 2014, at 14:02, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com" target="_blank">arnaudgelas@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">Hi all,<div><br></div><div>I have been looking at the following wiki example:</div><div><br></div><div><span style="white-space:pre-wrap"> </span><a href="http://www.itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM" target="_blank">http://www.itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM</a></div><div><br></div><div>It seems to me that the section to rescale the image is not valid anymore with latest ITK version (?)</div><div><br></div><div><span style="white-space:pre-wrap">    </span><a href="https://github.com/InsightSoftwareConsortium/ITKWikiExamples/blob/master/DICOM/ResampleDICOM.cxx#L314-L333" target="_blank">https://github.com/InsightSoftwareConsortium/ITKWikiExamples/blob/master/DICOM/ResampleDICOM.cxx#L314-L333</a></div><div><br></div><div>Can anyone confirm?</div><div><br></div><div>Is this code validated? are output images compared to input ones in the corresponding test?</div><div><br></div><div>Thanks</div><div>Arnaud</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></blockquote></div><br></div>
</blockquote></div><br></div></div></div></blockquote></div><br></div>
</blockquote></div><br></div></blockquote></div><br></div></div></body></html>