I am working on a plugin which convers various formats to DICOM and I am having trouble setting Pixel Padding Value attribute. It is defined as US or SS, but how can I choose between these two. I need to store signed short value in it since Pixel Data is signed short. I tried something like this:
dataSet[DicomTags.PixelPaddingValue] = new DicomAttributeSS(DicomTags.PixelPaddingValue);
With this I manage to put "-32768" in Pixel Padding Value attribute but when I save this dataSet to DICOM file it changes it back to unsigned string and instead "-32768" it saves "32768". So I was wondering if there is a way to tell CC that VR of PixelPaddingValue supposed to be SS and not US.
Thank you in advance.