Edit this page

NA-MIC Project Weeks

Back to Projects List

DICOM Structured Reports for WSI and conversion to segmentation object

Key Investigators

Presenter location: In-person

Project Description

In this project, we want to investigate and compare several approaches to convert DICOM Structured reports into DICOM segmentation objects. We use the integrated SLIM Viewer in Kaapana to create Structured Reports on DICOM WSI files and also want to compare the QuPath viewer as additional DICOM WSI viewer in Kaapana.


  1. Objective A: Examine existing libraries to render the coordinates from the SR file as segmentation.
  2. Objective B: Examine conversion methods to create DICOM annotation objects from the SR files
  3. Objective C: Evaluate file formats of QuPath DICOM WSI annotations.
  4. Objective D: Explore integration capabilities of QuPath as Viewer in Kaapana

Approach and Plan

  1. Familiarize with the highdicom librariy
  2. Compare result with custom visulaizations
  3. Evaluate conversion tools for SR files
  4. Test PACS connectivity of QuPath

Progress and Next Steps

  1. Familiarized with the highdicom library for accessing the SR coordinates
  2. Switching to a more generic way for rendering the coordinates
    for i in range(AnnotatetObjects3):
     x_coords3 = [int((Coords3[i]-Origin_X)/spacing_x) for i in range(0, len(Coords3), 3)]
     y_coords3 = [int((Coords3[i]-Origin_Y)/spacing_y) for i in range(1, len(Coords3), 3)]
     if Type=='Tissue':
     contours = np.array([[[abs(x), abs(y)] for x, y in zip(x_coords3, y_coords3)]], dtype=np.int32)


    sr = hd.sr.srread("/Users/maximilianfischer/ProjectsMountDir/CMU-1/Consistent/SR/DICOM/1E447C90/E88940CE/4E17833F.dcm")
    groups = sr.content.get_planar_roi_measurement_groups()
    for x in range(groups[0].roi.value.shape[0]):

    Much shorter code!

  3. Rendering still done with opencv, but planning to switch to rasterio.
  4. Bioformats as new DICOM conversion library to be supported in Kaapana (currently mostly based on PixelMed.)



No response

Background and References

This project is the continuation from last years project weeks. PW 38 PW 39 Kaapana