<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Daniela,<br>
<br>
You would use unsigned char for 8-bit greyscale images, i.e. with a
max value of 255. This would be a B/W image as an 8-bit image has
one channel. RGB has three 8-bit values, red, green, blue. <br>
<br>
Unsigned shorts are used for 16-bit images, such as 16-bit TIFFs. If
you have signed values, you could use the float type. You can
convert between types using the CastImageFilter.<br>
<br>
HTH <br>
Cheers<br>
Shakes<br>
<br>
On 9/09/2010 5:26 PM, Daniela Sacchetto wrote:
<blockquote cite="mid:BLU104-W1692AE3F9378645B6C53D1CC730@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
</body>
</html>