Page 1 of 1

ImageViewer Invert

Posted: Tue Jul 14, 2020 10:54 am
by Minkuk
I had a problem with "ImageViewer.Image.Invert()".

"ImageViewer1.VisualTool = m_DicomAnnotationTool;'When using the source and "ImageViewer.Image.Invert ()", there is no reaction.

However, "imageViewer1.VisualTool = m_DicomAnnotationTool;'If you do Invert without using that code, it will work normally.

I'm curious for some reason.

---

DicomAnnotatedViewerTool m_DicomAnnotationTool

Re: ImageViewer Invert

Posted: Tue Jul 14, 2020 3:57 pm
by Alex
Hello,

The DicomAnnotatedViewerTool class creates temporary image for fast DICOM image processing and visual tool does not use source image after initialization.

The DicomAnnotatedViewerTool is composite visual tool and it contains DicomViewerTool, DicomAnnotationTool and ImageMeasureTool.

For solving your task you need to do the following steps:
  • Get DicomViewerTool used in DicomAnnotatedViewerTool using DicomAnnotatedViewerTool.DicomViewerTool property.
  • Specify that DicomViewerTool must invert DICOM image in viewer using the DicomViewerTool.IsImageInverted property.
Best regards, Alexander

Re: ImageViewer Invert

Posted: Wed Jul 15, 2020 3:52 am
by Minkuk
Thank you for answering
'M_DicomAnnotationTool.DicomViewerTool.IsImageNegative != m_DicomAnnotationTool.DicomViewerTool.IsImageNegative; '
Inversion using the code worked fine.

But I also do Rotate here but there is no function that acts like Invert.

Is there a Rotate related function?

Re: ImageViewer Invert

Posted: Wed Jul 15, 2020 11:44 am
by Alex
Hello,
But I also do Rotate here but there is no function that acts like Invert.
Is there a Rotate related function?
Ability to rotate image in image viewer will be available in version 9.1.2, which will be available in August 2020.

Best regards, Alexander