• Resolved fsjones

    (@fsjones)


    Plugin is still working great overall. I’ve run into a minor problem. For some reason sometimes when I upload a DICOM files (usually plain films) they appear inverted. When I view the same DICOM file on my local computer they appear normal. Any idea how to fix this?

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ivmartel

    (@ivmartel)

    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.

    Thread Starter fsjones

    (@fsjones)

    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

    Thread Starter fsjones

    (@fsjones)

    I think my issue may relate to this thread: https://github.com/ivmartel/dwv/issues/222

    Plugin Author ivmartel

    (@ivmartel)

    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!

    Plugin Author ivmartel

    (@ivmartel)

    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

    Thread Starter fsjones

    (@fsjones)

    Thank you! A fix will will be greatly appreciated given I’ve had this issue on a number of cases.

    Thread Starter fsjones

    (@fsjones)

    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

    Plugin Author ivmartel

    (@ivmartel)

    I just published v0.6.1 of the plugin including the fix. I hope you like it!

    Thread Starter fsjones

    (@fsjones)

    Thank you!!! Works great.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Inverted images’ is closed to new replies.