Display custom bounding box on image

I am attempting to draw bounding box on DICOM images.

I’ve implemented a new extension panel on the right-hand side. As part of my work requirements, I need to overlay rectangles (with our bounding box coordinates) onto images. I intend to utilize the RectangleROI and RectangleROITools methods to achieve this functionality. Specifically, I aim to trigger the display of rectangles with predefined coordinates whenever a button on the side panel, say the “Positive” button, is clicked. While I’ve come across documentation detailing the addition of custom tools, I’m currently seeking guidance on how to call existing annotation tool such as RectangleROI to display rectangles whenever the buttons on my extension panel are activated.
I want to achieve the results displayed on the attached image without using the Rectangle tool on the dropdown list on UI.

1 Like

This is really a highly requested documentation, i will create a faq soon

1 Like

Hello Saba, I read the issue you had a problem with, I hope you have reached a conclusion because I am also working on a project where I have to draw a Bounding Box on the Dicom photo. can you help me?

I added it here,
https://www.cornerstonejs.org/live-examples/dynamicallyaddannotations

1 Like