Store float array?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
markw
Posts: 84
Joined: Mon, 2005-01-17, 01:08

Store float array?

#1 Post by markw »

Hi,

I have a DICOM image for which I generated some output for each pixel in the form of a 32 bit float. I would like to store the float array in either the same DICOM image, or in a new image, for later reference.

Ideally I could store the array perhaps in a private tag, but I don't know if that is legal.

Otherwise, it would be nice to store the float array in the PixelData location, but it seems this tag can only handle unsigned char/short.

I can always multiply my output float array by 1000 or so to get an unsigned short integer for storage, but, it would be nice if I didn't have to.

If I end up multiplying to get my floats to be integers, would it be legal to store this array at the back of my actual image data array, but keep the same height and width of the image for interpretation by DICOM viewers?

Thanks,
Mark

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

You could either use the rather new Raw Data IOD to store the float values in a separate object or you could use a private tag in the image file.

Btw, I cannot see any relation to the OFFIS DICOM tools in your question!?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest