View in #ohif on Slack
@Ali_Habibi: Hello everyone
I have : “bounding_box”:
{
“upper_left_x”: 1201,
“upper_left_y”: 2094,
“lower_left_x”: null,
“lower_left_y”: null,
“upper_right_x”: null,
“upper_right_y”: null,
“lower_right_x”: 1530,
“lower_right_y”: 2551
} Simply put, I want to display a rectangle with these coordinates on my DICOM image in such a way that it maintains its position even if the image is zoomed in or panned .
Can someone help me?
@Bill_Wallace: Just create a RectangleTool instance with those coordinates - you will need the world coordinates, with z index, and will need to create it on the right slice. Look at the cornerstone programatic creation of annotations examples for how to do it.
If you don’t want an ROI, you can create a sub-type of Rectangle for this.