Creating a dicom-file in HSV colors [message #58484] |
Thu, 31 January 2008 02:14 |
wengi
Messages: 12 Registered: February 2008
|
Junior Member |
|
|
Hi there,
this is my first question to this newsgroup. I could not find my
problem in the archives.
I want to create a dicom-file in the HSV-color format. We have the
toolkit and I can create the files, but they do not contain what I
want them to.
I pass a an array with size (3,25,25) to the method. The three fields
contain the values for hue, saturation and value. Writing the file
with
obj->setpixeldata, data, bits_allocated=bitsAlloc, $
photometric_interpretation = 'HSV',
$
columns = coli, $
rows = rowi, $
samples_per_pixel=3, $
planar_configuration = 0, $
pixel_representation = PixelRep, $
number_of_frames = 1
and commiting it produces a dcm-file with the size 25x25. Looking at
the file with a dicom-viewer shows that the first pixel-column of the
created image contains the values of the first row of the first field
of the input data.
Hard to describe...
Goal of the HSV-image should be to encode three different parameters
of an examination in one image.
So my question: Does anybody know if I have to rearrange my passed-in
data? IDL-Version is 6.3.
Greetings,
wengi
|
|
|