Open wadevs opened 5 months ago
@sedghi Hello! Have you got any idea why we are facing this strange behaviour ? Are there any examples that use a custom annotation manager ( we weren't able to find any, but if there were it's likely they would suffer from the same issue) ? Do you know anyone who might know more about this ? We have come issue 569 which may be related, but it hasn't received a lot of attention either.
Thanks!
first, why do you need a separate annotation manager?
because we are working with dicom images that don't always have a FrameOfReferenceUID set and we therefore have to adapt the default behaviour so that annotations can be used regardless.
We have support for that in the same manager, like what exactly the data and your use case? What are the requirements? Ultrasound?
Hello, the use case is as follows : a user should be able to display a mammograph in a viewport and be able to draw annotations using the EllipticalROITool. These annotations are then stored in a database and retrieved at a later point in time to be displayed again on the mammograph. We achieved the expected behavior as long as the mammograph possesses a FrameOfReferenceUID tag. We couldn't find how to handle this case in the documentation and the closest we have come across was mentioning using a custom annotation manager. Is this possible using the default annotation manager ?
I'm working on revamping the annotation manager very soon in the next version of cornerstone
OK, thank you for the heads up. Is there a rough approximation for the release date of the next version including the revamped annotation manager ? Would it be possible to have a reply here on this issue when the revamped manager is live ? Is there a workaround we could use in the meantime ?
I'm working on it in the beta
branch, i expect in couple of weeks
Can you check the latest OHIF viewer, which now includes Cornerstone 3D 2.0?
Here are the migration guides:
Try OHIF locally: https://viewer-dev.ohif.org/localbasic
Try Cornerstone3D 2.0 locally: https://www.cornerstonejs.org/live-examples/local.html
Describe the Bug
When loading annotations (EllipticalROITool) to be displayed in a viewport :
This may be related to the existing issue : https://github.com/cornerstonejs/cornerstone3D/issues/569 The issue appears to stem from checkAndDefineIsVisibleProperty in annotationVisibility
Steps to Reproduce
export { defaultCustomAnnotationManager } export default CustomAnnotationManager