<div dir="ltr">Livia,<div><br></div><div style>I think your diagnosis is probably correct. If the rescale slope is nonzero, then the intensities may not be the same when written out with a slope of 1. The itk reader always applies the slope and intercept when it reads the data.</div>
<div style><br></div><div style>Bill</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 13, 2013 at 10:27 AM, LiviaBarazzetti <span dir="ltr"><<a href="mailto:barazzetti.livia@yahoo.it" target="_blank">barazzetti.livia@yahoo.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
could it be that the original data has Rescale Intercept (0028,1052) and<br>
Rescale slope (0028,1052) different from 0 and 1? I had problems with data<br>
which had a non integer value of rescale slope: the data was read correctly<br>
(the correct rescale slope was applied), but then it could not be written as<br>
dicom again with the original rescale slope but only with rescale slope=1 ,<br>
so the pixel value changed.<br>
In my case, anyway, the intensity of the resulting image was correct after<br>
being read as a dicom (the correct rescale was applied again)<br>
<br>
Best<br>
Livia<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Image-Intensities-Changed-During-DICOM-Read-Write-Read-in-ITK-3-20-vs-ITK-4-4-1-tp7583746p7583758.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Image-Intensities-Changed-During-DICOM-Read-Write-Read-in-ITK-3-20-vs-ITK-4-4-1-tp7583746p7583758.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5">_____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>