<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Only ITK in Debug mode allows manipulating RescaleIntercept and RescaleSlope AND if output pixel type of the dicom writer is float or double. That's fine.&nbsp;
<div><br>
</div>
<div>Now the problem is gdcm::Rescaler may not work correctly. It stopped at gdcmRescaler::InverseRescaleFunction without finishing it.&nbsp;</div>
<div><br>
</div>
<div>I suppose that function handles inverse rescaling for float input pixel type. I don't expect anyone to look into that problem for me but just a little frustrated.</div>
<div><br>
</div>
<div>Wen<br>
<div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF563536" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>From:</b> insight-users-bounces@itk.org [insight-users-bounces@itk.org] on behalf of Li, Wen [WLi@childrensnational.org]<br>
<b>Sent:</b> Monday, August 19, 2013 11:24 PM<br>
<b>To:</b> insight-users@itk.org<br>
<b>Subject:</b> [Insight-users] DICOMWriter for wide dynamic intensity range<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi Insight users,
<div><br>
</div>
<div>I am talking about PET images. The data I am dealing with has a wide dynamic intensity range.</div>
<div>Now I am trying to write it as a DICOM image.&nbsp;</div>
<div><br>
</div>
<div>As we all know, DICOM only stores 16bit integer as pixel value. I tried to manipulate DICOM tag 0028|1052 and 0028|1053 for the RescaleIntercept and RescaleSlope. Failed. They were always reset to be 0 and 1.</div>
<div><br>
</div>
<div>Is there any suggestion about how to store the original intensity values instead of having them chopped off to be 16bit integer. In my case, I probably need float non-1 RescaleSlope.&nbsp;</div>
<div><br>
</div>
<div>BTW, I define my writer as&nbsp;</div>
<div>typedef itk::ImageSeriesWriter&lt; OutputImageType, OutputImageType2D &gt; SeriesWriterType;</div>
<div>OutputImageType::PixelType is float and OutputImageType2D::PixelType is signed short.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Wen</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>