View in #cornerstone3d on Slack
@Julian_Linares: Hello, I’m currently developing a generic viewer for DICOM images and have implemented a Reference Lines tool that is always active and dynamically updates based on clicks and scrolling. However, I’m facing an issue where the Reference Lines are displayed across all viewports for both the main study and previous studies, resulting in inaccurate positioning. I’ve tried creating different tool groups for each study, but the problem still persists. I want the Reference Lines to be distinct for each study.
@Jay_Liu: Why you are re-implementing reference line. I believe the tool already exist. It is clearly visible in the latest OHIF.
Reference lines are also only visible for series that has the same frameOfReferenceUID. Different study (or even acquisition/series within the same study) may have different frameOfReferenceUID.
If you reference line is visible in ALL
studies, it is likely that your code, or the frameOfReferenceUID tag in your DICOM are wrong.
@Julian_Linares: I’m using the ReferenceLines
tool directly from the cornerstone3DTools
library, not through OHIF. My code simply enables the tool for the tool group and sets a default source viewport. I’ve already checked the frameOfReferenceUID
of my DICOM images, and even when the source UID is different, the reference lines are still being displayed across viewports.
@Enas_Mostafa: This issue occurred because you assigned all viewports to a single tool group. Try creating multiple tool groups, one for each study.