When you say inverted, you mean in colors or in position (left is right or top is bottom)?
For colors, the DICOM files have a field called ‘Photometric Interpretation’ that decides whether to invert or not the color scale. If its value is MONOCHROME1 the scale will be from white to black and if MONOCHROME2 it will be from black to white.
Thank you for the response. It’s very odd because it’s random CXR cases that are inverted on my website and those same cases appear normal when I load them on a DICOM viewer locally on my computer.
I also edited the field you mentioned changing it to both monochrome1 and monochrome2 using a DICOM editor and uploaded both files to my website and both still appear inverted. What’s also weird is that when I change them between monochrome1 and monochrome2 they appear identical and normal on my local DICOM viewer.
Any suggestions?
Thank you!
Scott
I think my issue may relate to this thread: https://github.com/ivmartel/dwv/issues/222
The standard is clear: MONOCHROME1 minimum is white, MONOCHROME2 minimum is black (http://dicom.nema.org/dicom/2013/output/chtml/part03/sect_C.7.html#sect_C.7.6.3.1.2).
Now, viewer may or may not respect this… And since you are not the first one to ask, I am divided about respecting the standard or not!
Ok, my mistake, the pixel values are not what I thought they were…
I created this issue to fix it: https://github.com/ivmartel/dwv/issues/435
Thank you! A fix will will be greatly appreciated given I’ve had this issue on a number of cases.
Looks like the inverted issue was fixed and closed. Thank you again for looking into this. Any estimate on when the WordPress plugin will be updated with this fix?
Thank you
I just published v0.6.1 of the plugin including the fix. I hope you like it!
Thank you!!! Works great.