-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invert function not working some CR images #764
Comments
@jbocce , have you checked this issue? Thanks |
Possibly related to https://community.ohif.org/t/images-gets-inverted-when-resetting-zoom/1000? |
@idemopacs, thanks for bringing this to our attention. I have also just confirmed that it is indeed reappearing.. |
@jbocce I this issue with Photometric Interpretation. So MONOCHROME1 should be inverted by deafult. |
@Max-Kharitonov, are you saying that this is still an issue for you? If so, if possible, please provide fully anonymized DICOM data that demonstrates the problem. Thank you. |
Thanks @Max-Kharitonov. Could you please provide the actual anonymized DICOM file instead? Thanks. |
Describe the Bug
I am facing issue with Invert / Reset function with some of CR images.
When I apply the invert function to the image with below code , image is getting invert
const { invert } = viewport.getProperties();
viewport.setProperties({ invert: !invert });
viewport.render();
but after that if I reset viewport properties , Invert property of image is not getting reset
viewport.resetCamera();
viewport.resetProperties();
After loading image in viewport if I check the Invert property of image , I am getting value as 'true'.
const { invert } = viewport.getProperties();
Steps to Reproduce
CRInvertIssue.zip
The current behavior
After clicking Invert button image is getting inverted but after clicking Reset button Invert property of image is not getting reset
The expected behavior
Invert property of Image should be reset.
OS
Windows 10
Node version
v16.17.1
Browser
Chrome 114.0.5735.134
The text was updated successfully, but these errors were encountered: