[Dcmlib] 16 bits and FileHelper::GetImageData
Jean-Pierre ROUX
jean-pierre.roux at creatis.insa-lyon.fr
Fri Apr 21 09:12:57 CEST 2006
At 17:17 -0500 20/04/06, Andres Barrera wrote:
>Hello list,
>
> I just got gdcm and started to run some tests, so please excuse my
>ignorance...
>
> Why does FileHelper::GetImageData() return a uint8_t*?
uint8_t* is just for protyping.
(Actually, it should be 'void *', because GetImageData() may only
return one data type)
Fell free to cast it, in uint16_t*, it doesn't lead to any pb.
HTH
Jean-Pierre Roux
> How can I get a uint16_t* for images using 12+ bits resolution? I
>am trying to process the data in my own structures that uses
>"unsigned short*"
.
>
> Thanks
>
> Andres
>
>
>_______________________________________________
>Dcmlib mailing list
>Dcmlib at creatis.insa-lyon.fr
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
Jean-Pierre ROUX
CREATIS - CNRS UMR 5515, INSERM U 630
Laboratoire de Radiologie Experimentale
Hopital Cardiologique
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
Tel : (+33) 04 72 35 74 12
Fax : (+33) 04 72 68 49 16
URL : http://www.creatis.univ-lyon1.fr
e-mail : jpr at creatis.univ-lyon1.fr
More information about the Dcmlib
mailing list