View in #ohif on Slack
@Vishnu_prasad: Can someone guide me on how to add an image or icon, like a flag, to mark a frame in the OHIF viewer? I’m currently using version 3.8.3
@Bill_Wallace: Add the cornerstone tool KeyImageTool, and create an instance of that on the frame of interest.
That is exactly what it is intended to do
@Vishnu_prasad: could you please elaborate a little bit?
@Bill_Wallace: Run the CS3D examples for video annotation tools: https://www.cornerstonejs.org/live-examples/videotools Note that these work for other viewports, just that it was specifically created for video work, and time ranges in video even more specifically.
Select ‘KeyImage’ from the pull down and click on an image. You will see it shows on that frame, but not others.
This example also shows how to use it: https://www.cornerstonejs.org/live-examples/stackannotationtools
You can add that to OHIF if you want to create a PR for this - probably something we should allow in OHIF.
@Vishnu_prasad: Hey @Bill_Wallace, thanks for the reply.
can I get it from the developer’s point of view?
@Bill_Wallace: Yes, there are CS3D examples showing how to get/create annotations programmatically