<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.1830" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi everyone!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>sorry for dumping emails in the list lately, but
I'm encountering unexpected problems...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using SubtractImageFilter to get the an output
image. In order to preserve the intensity profile I'm using a signed short image
for 2 unsigned char input images.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As I don't want negative values, I get the minimum
of the image (a negative value) and create and offset image so adding it to the
output of SubtractImageFilter will return an image with positive values that i
template as unsigned short to avoid problems.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Well, so far so good I think. Then, i write the
final image to a .mhd type image and the result looks as I wanted. But if I
asked it to write a vtk image, the resulting image is far from what I expected.
Instead, my image is satured on the high levels and is generally brighter.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The histogram shows that the values have an
addition offset so the values closer to the maximum are satured. The mhd image
has a max value of 456 (which is consistent with something that come from
unsigned char images), but the vtk image is beyong 60000.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any idea about this?? Please note, that the only
difference is the format of the output image passed in the command line. Input
and code are exactly the same.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>David</FONT></DIV></BODY></HTML>