View in #cornerstone3d on Slack
@Ramón_Emiliani: Hi I have a custom annotation manager that is based on the Series Instance UID and with the cornerstone 2.0 update I am not able to see the added annotations. Any help on how to debug what is happening is appreciated Thanks
@Alireza_Sedghi: Hmmm, not much (or any) has been changed in annotations
i"m surprised
any error? or just not appear
@Ramón_Emiliani: They simply do not appear, I checked the tool for filtering and it does return the annotations. Let me take a video
@Alireza_Sedghi: I don’t think video would help
we can debug it in office hours
but check filterAnnotationForDisplay
put debugger and go through each to see if something is happening
I think since viewReference is FrameOfReference
it does not pass that filter
@Ramón_Emiliani: Thanks so much I’ll check it out
@Bill_Wallace: There is a new function in a viewport to allow getting most of the metadata part of an annotation - it also allows getting that for an image not in view, but not for one which is offscreen. Probably I should add a method for that too.
@Ramón_Emiliani: Not sure if it is this but should this function use the getAnnotationManager
instead? https://github.com/cornerstonejs/cornerstone3D/blob/8ced02a99bf153c9d268449db47f5a[…]/packages/tools/src/stateManagement/annotation/getAnnotation.ts
<https://github.com/cornerstonejs/cornerstone3D/blob/8ced02a99bf153c9d268449db47f5abfe4a557b3/packages/tools/src/stateManagement/annotation/getAnnotation.ts | getAnnotation.ts>