<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></STYLE>
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY class=hmmessage style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">I think it's unsafe to make assumptions about the pixel type you are dealing with. Normally the header file associated with the image will give you information about which pixel type you should use. For example, I'm reading Interfile files which contain a field like this, "number format := UNSIGNED INTEGER", for DICOM there are similar fields.<BR><BR>>>> Daniela Sacchetto <danysunflower@hotmail.it> 09/09/2010 08:26 >>><BR>
<DIV style="COLOR: #000000">Hi everyone,<BR>I'm writing because I have a question for you.<BR>Could anyone explain me how can I decide the itk::PixelType? Usually I work with unsigned short pixels, but now I would like to understand better this problem.<BR> <BR>For ex I know that:<BR> <BR>PixelType must be "signed" for CT since Hounsfield units can be < 0.<BR> <BR>Are there any rules for each medical image? (TC,PET,US,RX,...)<BR>And when do you use pixelType = unsigned char?<BR> <BR>Thanks all for your help,<BR>Regards<BR>Daniela<BR></DIV></BODY></HTML>