Adding CTR tool to OHIF

Describe Your Question

  • A clear and concise description of what problem you are having.
  • Which OHIF version you are using? 3.9x

Hello, I’m working on building a custom tool in the OHIF Viewer to calculate and display the Cardio-Thoracic Ratio (CTR) from DICOM images, similar to the existing Cobb Angle tool. Specifically, I would like to:

  1. Allow users to measure the thoracic diameter and cardiac diameter from an image and automatically calculate the CTR as a percentage.
  2. Display the measured values and the calculated CTR on the image overlay.
  3. Ensure the CTR tool integrates seamlessly with the existing measurement tools in OHIF Viewer, such as line drawing and angle measurement.

Can anyone provide guidance on how to develop this tool, or point me to relevant resources or documentation to modify and extend OHIF Viewer for this purpose? Also, what specific parts of the OHIF source code should I focus on to create this custom measurement tool?