[Insight-users] Question about DICOM files and grey levels

Iván Macía imacia at vicomtech.es
Wed Mar 1 04:06:18 EST 2006


Hi Remi,

You don't say anything about the modality of the images but from your email
I deduce you are working with CT. In that case the pixel type for the itk
image should be short. If you were using MR images you should use unsigned
short instead. 

Hope that helps

Ivan 
 

-----Mensaje original-----
De: insight-users-bounces+imacia=vicomtech.es at itk.org
[mailto:insight-users-bounces+imacia=vicomtech.es at itk.org] En nombre de Remi
Vieux
Enviado el: martes, 28 de febrero de 2006 17:20
Para: Itk mailing list
Asunto: [Insight-users] Question about DICOM files and grey levels

Hi everyone,
Here is my question:
A DICOM file contains pixel data coded on 12 bits am I right? So that is to
say when you read a DICOM file you should obtain in example grey levels from
0 to 4095.
So, I'm trying to read a 2D DICOM serie and put it in the so defined itk
Image:
typedef unsigned short PixelVolumeType;
const unsigned int VolumeDimension = 3;
typedef itk::Image<PixelVolumeType, 3> VolumeType;

When I check the values of the pixel, its "all" in the 64000's, that is to
say well above the theoric 4095 max value. In the documentation it is
suggested to use signed short as Pixel Type for reading DICOM files, so my
guess is that it is the conversion from signed to unsigned which results in
those anormal values. So, is it possible to get the data with the "correct"
values directly?

Regards,
Remi.


	

	
		
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: 28/02/2006
 



More information about the Insight-users mailing list