<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=965284018-28052008>I am writing some
code to compute DRRs, starting with the ITK example code in
DigitallyReconstructedRadiograph1.cxx and DicomSeriesReadImageWrite2.cxx as
examples.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=965284018-28052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=965284018-28052008>I have some DICOM
images that are of type signed short. They contain the value -32768 for
some of the pixel values. The rescale slope and intercept values in
the dicom are 1 and -1024. When I read these DICOM images the pixel
values get scaled and transformed by the equation buffer =
pixel*slope + intercept. This causes the buffer values to be represented
as the positive number 31744 rather than being clipped to -32768, which then
causes problems when computing the DRR, since I can't filter out the huge
positive values. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=965284018-28052008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=965284018-28052008>Is there a simple
way to avoid this problem?</SPAN></FONT></DIV></BODY></HTML>