Grey Scale Color Inversion not Saving/Exporting in DICOM

Hello,

I have an MRI DICOM image stack for which I need to invert the colors (to make it appear like a CT), save the change, and then export that “negative”, also as a DICOM to use in another treatment planning software.

I am able to invert the colors by using the Volumes>InvertedGrey. My issue is getting the change to save/export correctly.

I have tried:

  1. Directly exporting with the change active using DICOM Database>Export to DICOM>Export Series
  2. Saving the scene with default settings - reopening, then exporting as described above
  3. Saving the scene - reopening, exporting using “Create a DICOM series”
  4. Saving the inverted file as a .mrb (which preserves the color inversion upon reopening) and then also exporting both ways described in 1 and 2.

In all cases, when I go to open the newly exported file, it is the exact same as my initial DICOM.

Any assistance would be greatly appreciated.

Thanks!

This is not unexpected, since DICOM images are “lossy” with respect to what you see in Slicer in the sense that we don’t export the lookup table. You could look into constructing a custom DICOM header and might be able to achieve what you want, but an easier way might be modify the data directly. E.g. like this example with a numpy array except with a line like voxelArray[:] = -1 * voxelArray and then fix the window/level and export to DICOM.