[Dcmlib] New Feature : void FileHelper::SetContentType (ImageContentType c);

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Wed Mar 1 17:01:38 CET 2006


Mathieu Malaterre wrote:

> Jean-Pierre Roux wrote:
>
>> Hi!
>> Just to keep a track in the gdcm mailing list :
>>
>>
>> Some clinical softwares refuse to perform some operations, when 
>> images are 'not
>> native' (i.e. SOP Class UID -> [Secondary Capture Image Storage]), and
>> gdcm-written images fail.
>
>
> This SOP should be avoided at all cost. I started a small Wiki about 
> that:


 Only user knows what he did !

If he rewrites an image (after modifying the pixels with a mathematical 
function of the original image) he has to say :
myFileHelper.SetContentType(FILTERED_IMAGE);
--> SOP Class UID : unmodified
--> 'Image Type' : DERIVED\PRIMARY

If he rewrites an image (without modifying the pixels of the original 
image) he has to say :
myFileHelper.SetContentType(UNMODIFIED_PIXELS_IMAGE);
--> SOP Class UID : unmodified
--> 'Image Type' : unmodified

If he creates his own image ex-nihilo he has to say :
myFileHelper.SetContentType(USER_OWN_IMAGE);
-->SOP Class UID -> [Secondary Capture Image Storage]
--> 'Image Type' : DERIVED\PRIMARY  <-- I'd agree to modify it

If he creates a MIP image, or a MPR image from a Serie he has to say
myFileHelper.SetContentType(CREATED_IMAGE)
-->SOP Class UID -> [Secondary Capture Image Storage]
--> 'Image Type' : DERIVED\PRIMARY  <-- I'd agree to modify it

This should solve the pb you describe in your wiki (I guess we had the 
same problem)
Something I'm not sure at all is the meaning of the various components 
of the field 'Image Type' (0x0008,0x0008)

Of course
if it starts with ORIGINAL, it's a native image
if it starts with DERIVED, it's a filtered image

What about the other components ?
We can find things as :
ORIGINAL\PRIMARY\SINGLE PLANE
ORIGINAL\PRIMARY\AXIAL\CT_SOM5 SPI
ORIGINAL\PRIMARY\M_FFE\M\FFE
ORIGINAL\PRIMARY\PROJECTION IMAG\M \FFE
ORIGINAL\PRIMARY\OTHER\M\FFE
ORIGINAL\SECONDARY\OTHER\M\FFE
ORIGINAL\PRIMARY\VELOCITY MAP\P\PC
ORIGINAL\PRIMARY\M\NDA
ORIGINAL\PRIMARY\M\ND
ORIGINAL\PRIMARY\M\ND\NORM
ORIGINAL\PRIMARY\MIP_TRA\ND
ORIGINAL\PRIMARY\MIP_COR\ND
ORIGINAL\PRIMARY\MIP_SAG\ND
DERIVED\SECONDARY\PROJECTION IMAGE \CSA MIP\CSAMANIPULATED
ORIGINAL\PRIMARY\M\ND\GBP
DERIVED\SECONDARY\R\ND\NORM\CSA RESAMPLED
ORIGINAL\PRIMARY\AXIAL\NORMAL
DERIVED\PRIMARY

JP

>
> http://gdcm.sourceforge.net/wiki/index.php/Writing_DICOM
>
> Mathieu
>




More information about the Dcmlib mailing list